PHP Unit Tests

PHP 5.3.3, Apache
fundamentals
Variables
==
Operators
Types
in general
Boolean
Math Base
Array
1892← semicolon($a=array(2, 'b', 'or'=>'not', array('2b')), $a[0])
190'b'← semicolon($a=array(2, 'b', 'or'=>'not', array('2b')), $a[1] )
191'not'← semicolon($a=array(2, 'b', 'or'=>'not', array('2b')), $a['or'] )
192'2b'← semicolon($a=array(2, 'b', 'or'=>'not', array('2b')), $a[2][0])
1931← semicolon(list($one,$two)=array(1,2), $one)
1942← semicolon(list($one,$two)=array(1,2), $two)
1953← count(array(7,8,9))
1963← count(array(7,8,9,))
197ERROR← count(array(7,8,9,),)
1980← count(array())
1993← count(array(7,8,array(9,10,11)))
2006← count(array(7,8,array(9,10,11)), COUNT_RECURSIVE)
2010← count(array(), COUNT_RECURSIVE)
2021← count(array(array()), COUNT_RECURSIVE)
2032← count(array(array(1)), COUNT_RECURSIVE)
20412← count(array(array(1,2,3),array(4,5,6),array(7,8,9)), COUNT_RECURSIVE)
20510← count(array(range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9)))
206110← count(array(range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9),range(0,9)), COUNT_RECURSIVE)
2073← sizeof(array(7,8,9))
20812← sizeof(array(array(1,2,3),array(4,5,6),array(7,8,9)), COUNT_RECURSIVE)
209
Array
(
[0] => string
)
← (array)'string'
210
Array
(
[0] => 333
)
← (array)333
211
Array
(
    [x] => 0
    [y] => 1
)
←$a = array("x" => 0, "y" => 1)
2120← $a["x"]
2131← $a["y"]
214semicolon($b = $a, $b["z"] = 2, !isset($a["z"]))
215
Array
(
    [a] => apple
)
←array("a"=>"apple")
216
Array
(
    [a] => aardvark
)
←array("a"=>"apple", "a"=>"aardvark")
217
Array
(
    [0] => zero
    [1] => one
)
←array("zero", "one")
218ERROR← list("zero", "one")
21999← semicolon(list($a,$b)=array(11,99), $b)
220array(1,'a'=>array('aid','abet'),2,2,3) == array(1,2,2,3,'a'=>array('aid','abet'))
221true == (array(1,'a'=>array('aid','abet'),2,2,3) == array(1,2,2,3,'a'=>array('aid','abet')))
222false == (array(1,'a'=>array('aid','abet'),2,2,3) != array(1,2,2,3,'a'=>array('aid','abet')))
223array(1,'a'=>array('aid','abet'),2,2,3) !== array(1,2,2,3,'a'=>array('aid','abet'))
224true == (array(1,'a'=>array('aid','abet'),2,2,3) !== array(1,2,2,3,'a'=>array('aid','abet')))
225false == (array(1,'a'=>array('aid','abet'),2,2,3) === array(1,2,2,3,'a'=>array('aid','abet')))
22699← semicolon($a=array(88,99), end($a))
22788← semicolon($a=array(88), end($a))
228FALSE← semicolon($a=array(), end($a))
229
Array
(
[ALPHA] => aLePh
[BETA] => bEt
)
← array_change_key_case(array('aLpHa'=>'aLePh', 'bEtA'=>'bEt'), CASE_UPPER)
230
Array
(
[ALPHA] => aLePh
[BETA] => bEt
)
← array_change_key_case(array('aLpHa'=>'aLePh', 'bEtA'=>'bEt'), CASE_UPPER)
231
Array
(
[alpha] => aLePh
[beta] => bEt
)
← array_change_key_case(array('aLpHa'=>'aLePh', 'bEtA'=>'bEt'))
232
Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[0] => c
[1] => d
)

[2] => Array
(
[0] => e
)

)
← array_chunk(array('a','b','c','d','e'), 2)
233
Array
(
[0] => Array
(
[0] => 9
[1] => 8
)

[1] => Array
(
[0] => 7
)

)
← array_chunk(array(9,8,7), 2)
234
Array
(
[1] => 11
[2] => 22
)
← array_combine(array(1,2),array(11,22))
235
Array
(
[11] => 1
[33] => 3
)
← array_count_values(array(11,33,33,33))
236
Array
(
[0] => 1
[1] => 2
)
← array_diff(array(1,2,3,4,5), array(3,5), array(4))
237
Array
(
[0] => 1
[1] => 1
[2] => 2
[3] => 2
[4] => 2
)
← array_diff(array(1,1,2,2,2,3,3,4,4,5,5), array(3,3,5), array(4,4,4,4,4,4))
238
Array
(
[1] => 11
[3] => 33
)
← array_diff_assoc(array(1=>11, 2=>22, 3=>33), array(1=>111,2=>22,33=>33))
239
Array
(
[2] => 22
)
← array_diff_key(array(1=>11, 2=>22), array(1=>22))
240'00lambda_2'←create_function('$L,$R', 'return $L-$R;')
241-1←semicolon($f=create_function('$L,$R', 'return $L-$R;'), $f(1,2))
2421←semicolon($f=create_function('$L,$R', 'return $L-$R;'), $f(2,1))
2430←semicolon($f=create_function('$L,$R', 'return $L-$R;'), $f(2,2))
244'string'←gettype(create_function('$L,$R', 'return $L-$R;'))
245-1←icmp(1,2)
2461←icmp(2,1)
2470←icmp(2,2)
248
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), 'icmp')
249
Array
(
[1] => 11
)
← semicolon($f='icmp', array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), $f))
250
Array
(
[1] => 11
)
← semicolon($f=create_function('$L,$R', 'return $L-$R'.chr(59)), array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), $f))
251
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), create_function('$L,$R', 'return $L-$R'.chr(59)))
252
Array
(
[1] => 11
)
← semicolon($f=create_function('$L,$R', 'return $L-$R;'), array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), $f))
253
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array( 2=>22), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
254
Array
(
[1] => 11
[2] => 22
)
← array_diff_uassoc(array(1=>11, 2=>22), array( 2=> 2), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
255
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array(22=>22), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
256WARNING← array_diff_uassoc(array(1=>11, 2=>22),                   array( 2=>22)         )
257WARNING← array_diff_uassoc(array(1=>11, 2=>22),                   array( 2=>22), array())
258
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array(), array(), array( 2=>22), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
259
Array
(
[1] => 11
)
← array_diff_ukey(array(1=>11, 2=>22), array( 2=>22), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
260
Array
(
[1] => 11
)
← array_diff_ukey(array(1=>11, 2=>22), array(22=> 2), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
261
Array
(
[1] => 11
)
← array_diff_ukey(array(1=>11, 2=>22), array( 2=>77), create_function('$L,$R', 'return $L%10-$R%10'.chr(59)))
262
Array
(
[1] => 11
)
← array_diff_uassoc(array(1=>11, 2=>22), array(2=>22), create_function('$L,$R', 'return $L-$R'.chr(59)))
263
Array
(
[1] => 11
)
← array_diff_ukey  (array(1=>11, 2=>22), array(2=>0), create_function('$L,$R', 'return $L-$R'.chr(59)))
264
Array
(
[1] => Array
(
[0] => 11
[1] => 22
)

[2] => Array
(
[0] => 11
[1] => 22
)

)
← array_fill_keys(array(1,2), array(11,22))
265
Array
(
[1] => 9
[2] => 9
)
← array_fill_keys(array(1,2), 9)
266
Array
(
[8] => 11
[9] => 11
)
← array_fill(8, 2, 11)
267
Array
(
[8] => Array
(
[0] => 88
[1] => 99
)

[9] => Array
(
[0] => 88
[1] => 99
)

)
← array_fill(8, 2, array(88,99))
268
Array
(
[0] => 1
[2] => 3
)
← array_filter(array(1,2,3,4), create_function('$e',   'return ($e & 1) != 0'.chr(59)))
269
Array
(
[1] => 2
[3] => 4
)
← array_filter(array(1,2,3,4), create_function('$e', 'return !(($e & 1) != 0)'.chr(59)))
270
Array
(
[1] => 1
[3] => 3
)
← array_filter(array(0,1,2,3), create_function('$e',   'return $e & 1'.chr(59)))
271
Array
(
[11] => 1
[22] => 2
)
← array_flip(array(1=>11, 2=>22))
272
Array
(
[2] => 2
)
← array_intersect      (array(1=>1, 2=>2), array(22=> 2, 33=> 3))
273
Array
(
[2] => 2
)
← array_intersect      (array(1=>1, 2=>2), array( 2=> 2,  3=> 3))
274
Array
(
)
← array_intersect      (array(1=>1, 2=>2), array( 2=>22,  3=>33))
275
Array
(
)
← array_intersect_assoc(array(1=>1, 2=>2), array(22=> 2, 33=> 3))
276
Array
(
[2] => 2
)
← array_intersect_assoc(array(1=>1, 2=>2), array( 2=> 2,  3=> 3))
277
Array
(
)
← array_intersect_assoc(array(1=>1, 2=>2), array( 2=>22,  3=>33))
278
Array
(
)
← array_intersect_key  (array(1=>1, 2=>2), array(22=> 2, 33=> 3))
279
Array
(
[2] => 2
)
← array_intersect_key  (array(1=>1, 2=>2), array( 2=> 2,  3=> 3))
280
Array
(
[2] => 2
)
← array_intersect_key  (array(1=>1, 2=>2), array( 2=>22,  3=>33))
281
Array
(
[i] => j
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'3'), array('M'=>'3'), 'strcasecmp')
282
Array
(
[i] => j
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'3'), array('M'=> 3 ), 'strcasecmp')
283
Array
(
[i] => j
[m] => 3
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'3'), array('M'=> 33), 'strcasecmp')
284
Array
(
[i] => j
)
← array_udiff_assoc(array('i'=>'j', '3'=>'m'), array('3'=>'M'), 'strcasecmp')
285
Array
(
[i] => j
)
← array_udiff_assoc(array('i'=>'j', '3'=>'m'), array( 3 =>'M'), 'strcasecmp')
286
Array
(
[i] => j
[3] => m
)
← array_udiff_assoc(array('i'=>'j', '3'=>'m'), array( 33=>'M'), 'strcasecmp')
287
Array
(
[i] => j
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'n'), 'strcasecmp')
288
Array
(
[i] => j
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'n'), 'strcasecmp')
289
Array
(
[i] => j
[m] => n
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcasecmp')
290
Array
(
[i] => j
[m] => n
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'n'), 'strcmp')
291
Array
(
[i] => j
)
← array_diff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'n'), 'strcmp')
292
Array
(
[i] => j
)
← array_udiff_assoc(array('i'=>'j', 'm'=>'n'), array('m'=>'n'), 'strcasecmp')
293
Array
(
[i] => j
)
← array_udiff_assoc(array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcasecmp')
294
Array
(
[i] => j
[m] => n
)
← array_udiff_assoc(array('i'=>'j', 'm'=>'n'), array('M'=>'n'), 'strcasecmp')
295
Array
(
[i] => j
[m] => n
)
← array_udiff_assoc(array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcmp') (expected array array('i'=>'j'          ) i.e.
Array
(
    [i] => j
)
)
296
Array
(
[i] => j
)
← array_udiff_assoc(array('i'=>'j', 'm'=>'n'), array('m'=>'n'), 'strcmp')
297
Array
(
)
← array_udiff_assoc(array(          'i'=>'j'), array('i'=>'J'), 'strcasecmp')
298
Array
(
[i] => j
)
← array_diff_uassoc (array('i'=>'j', 'm'=>'n'), array('M'=>'n'),               'strcasecmp')
299
Array
(
[i] => j
)
← array_udiff_assoc (array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcasecmp'              )
300
Array
(
[i] => j
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'N'), 'strcasecmp', 'strcasecmp')
301
Array
(
[i] => j
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'n'), 'strcmp',     'strcmp'    )
302
Array
(
[i] => j
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'n'), 'strcmp',     'strcasecmp')
303
Array
(
[i] => j
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcasecmp', 'strcmp'    )
304
Array
(
[i] => j
[m] => n
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('m'=>'N'), 'strcmp',     'strcasecmp')
305
Array
(
[i] => j
[m] => n
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'n'), 'strcasecmp', 'strcmp'    )
306
Array
(
[i] => j
)
← array_udiff_uassoc(array('i'=>'j', 'm'=>'n'), array('M'=>'N'), 'strcasecmp', 'strcasecmp')
307
Array
(
)
← array_udiff_uassoc(array(          'i'=>'j'), array('I'=>'J'), 'strcasecmp', 'strcasecmp')
308
Array
(
[0] => a
)
← array_udiff(array('a','b'), array('B'), 'strcasecmp')
309
Array
(
[0] => a
[1] => b
)
← array_udiff(array('a','b'), array('B'), 'strcmp')
310
Array
(
[0] => a
)
← array_udiff(array('a','b'), array('b'), 'strcmp')
311
Array
(
[1] => b
)
← array_udiff(array('a','b'), array('A'), 'strcasecmp')
312
Array
(
[1] => b
)
← array_uintersect(array('a','b'), array('B', 'C'), 'strcasecmp')
313
Array
(
)
← array_uintersect(array('a','b'), array('B', 'C'), 'strcmp')
314
Array
(
[1] => b
)
← array_uintersect(array('a','b'), array('b', 'c'), 'strcmp')
315
Array
(
[i] => j
)
← array_diff_ukey  (array('i'=>'j', 'm'=>'n'), array('M'=>'Z'), 'strcasecmp')
316
Array
(
[i] => j
[m] => n
)
← array_diff_ukey  (array('i'=>'j', 'm'=>'n'), array('x'=>'Z'), 'strcasecmp')
317
Array
(
[i] => j
[m] => n
)
← array_diff_ukey  (array('i'=>'j', 'm'=>'n'), array('M'=>'Z'), 'strcmp')
318
Array
(
[i] => j
)
← array_diff_ukey  (array('i'=>'j', 'm'=>'n'), array('m'=>'Z'), 'strcmp')
319
Array
(
[e] => e
)
← array_intersect_uassoc(array(/*'a'=>'a',*/ 'e'=>'e'), array('E'=>'e'/*, 'i'=>'i'*/), 'strcasecmp')
320
Array
(
)
← array_intersect_uassoc(array(/*'a'=>'a',*/ 'e'=>'e'), array('E'=>'e'/*, 'i'=>'i'*/), 'strcmp')
321
Array
(
[e] => e
)
← array_intersect_uassoc(array(/*'a'=>'a',*/ 'e'=>'e'), array('e'=>'e'/*, 'i'=>'i'*/), 'strcmp')
322
Array
(
)
← array_intersect_uassoc(array(/*'a'=>'a',*/ 'e'=>'e'), array('e'=>'x'/*, 'i'=>'i'*/), 'strcmp')
323
Array
(
[e] => e
)
← array_intersect_ukey(array(/*'a'=>'a',*/ 'e'=>'e'), array('E'=>'o'/*, 'i'=>'i'*/), 'strcasecmp')
324
Array
(
)
← array_intersect_ukey(array(/*'a'=>'a',*/ 'e'=>'e'), array('E'=>'o'/*, 'i'=>'i'*/), 'strcmp')
325
Array
(
[e] => e
)
← array_intersect_uassoc (array('e'=>'e'), array('E'=>'e'),               'strcasecmp')
326
Array
(
[e] => e
)
← array_uintersect_assoc (array('e'=>'e'), array('e'=>'E'), 'strcasecmp'              )
327
Array
(
[e] => e
)
← array_uintersect_uassoc(array('e'=>'e'), array('E'=>'E'), 'strcasecmp', 'strcasecmp')
328TRUE← array_key_exists(9, array(9=>99))
329FALSE← array_key_exists(8, array(9=>99))
330FALSE← array_key_exists(9, array(8=>99))
331
Array
(
[0] => 1
[1] => 2
[2] => 11
)
← array_keys(array(1=>11, 2=>22, 11=>'11'))
332
Array
(
[0] => 1
[1] => 11
)
← array_keys(array(1=>11, 2=>22, 11=>'11'), 11)
333
Array
(
[0] => 1
)
← array_keys(array(1=>11, 2=>22, 11=>'11'), 11, true)
334
Array
(
[0] => 1
[1] => 11
)
← array_keys(array(1=>11, 2=>22, 11=>'11'), 11, false)
335
Array
(
[0] => 1
[1] => 2
[2] => 3
)
← array_keys(array(1=>11, 2=>22, 3=>'11'))
336
Array
(
[0] => 1
[1] => 3
)
← array_keys(array(1=>11, 2=>22, 3=>'11'), 11)
337
Array
(
[0] => 1
)
← array_keys(array(1=>11, 2=>22, 3=>'11'), 11, true)
338
Array
(
[0] => 2
[1] => 4
[2] => 6
)
← array_map(create_function('$n', 'return $n*2'.chr(59)), array(1,2,3))
339
Array
(
[0] => 11
[1] => 22
[2] => 33
)
← array_map(create_function('$n, $m', 'return $n+$m'.chr(59)), array(10,20,30), array(1,2,3))
340
Array
(
[A] => a
)
← array_map('strtolower', array('A'=>'A'))
341
Array
(
[0] => 1
[1] => 2
[a] => strong
[2] => 2
[3] => 3
)
← array_merge(array(1,2,'a'=>'weak'), array(2,3,'a'=>'strong'))
342
Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
)
← array_merge          (array(1,2), array(2,3))
343
Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
)
← array_merge_recursive(array(1,2), array(2,3))
344
Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
[4] => Array
(
[0] => 3
[1] => 4
)

)
← array_merge          (array(1,2), array(2,3, array(3,4)))
345
Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
[4] => Array
(
[0] => 3
[1] => 4
)

)
← array_merge_recursive(array(1,2), array(2,3, array(3,4)))
346
Array
(
[a] => abet
)
← array_merge          (array('a'=>'aid'), array('a'=>'abet'))
347
Array
(
[0] => aid
[1] => abet
)
← array_merge          (array('8'=>'aid'), array('8'=>'abet'))
348
Array
(
[0] => aid
[1] => abet
)
← array_merge          (array('8'=>'aid'), array( 8 =>'abet'))
349
Array
(
[0] => aid
[1] => abet
)
← array_merge          (array( 8 =>'aid'), array( 8 =>'abet'))
350
Array
(
[8a] => abet
)
← array_merge          (array('8a'=>'aid'),array('8a'=>'abet'))
351
Array
(
[8.8] => abet
)
← array_merge          (array('8.8'=>'aid'),array('8.8'=>'abet'))
352
Array
(
[8e8] => abet
)
← array_merge          (array('8e8'=>'aid'),array('8e8'=>'abet'))
353
Array
(
[0] => aid
[1] => abet
)
← array_merge          (array( 8.8 =>'aid'),array( 8.8 =>'abet'))
354
Array
(
[a] => Array
(
[0] => aid
[1] => abet
)

)
← array_merge_recursive(array('a'=>'aid'), array('a'=>'abet'))
355
Array
(
[0] => 1
[a] => Array
(
[0] => aid
[1] => abet
)

[1] => 2
[2] => 2
[3] => 3
)
← array_merge_recursive(array(1,'a'=>'aid',2), array(2,'a'=>'abet', 3))
356
Array
(
[z] => Array
(
[a] => Array
(
[0] => aid
[1] => abet
)

)

)
← array_merge_recursive(array('z'=>array('a'=>'aid')), array('z'=>array('a'=>'abet')))
357
Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
)

)
← array_merge_recursive(array('a'=>array(1,2)), array('a'=>array(2,3)))
358
Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 2
[3] => 3
[4] => aid
[5] => abet
)

)
← array_merge_recursive(array('a'=>array(1,2)), array('a'=>array(2,3)), array('a'=>'aid'), array('a'=>'abet'))
359
Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
)

)
← array_merge_recursive(array('a'=>array(1,2)), array('a'=>array(3,4)), array('a'=>5), array('a'=>6))
360
Array
(
[a] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)

)
← array_merge_recursive(array('a'=>array(1)), array('a'=>2), array('a'=>array(3,4)))
361
Array
(
[a] => Array
(
[0] => 1
[1] => 2
)

)
← array_merge_recursive(array('a'=>array(1)), array('a'=>2))
362
Array
(
[a] => Array
(
[b] => Array
(
[0] => 1
[1] => 2
)

)

)
← array_merge_recursive(array('a'=>array('b'=>1)), array('a'=>array('b'=>2)))
363
Array
(
[0] => Array
(
[0] => 1
[1] => 4
[2] => 7
)

[1] => Array
(
[0] => 2
[1] => 5
[2] => 8
)

[2] => Array
(
[0] => 3
[1] => 6
[2] => 9
)

)
← array_map(null, array(1,2,3), array(4,5,6), array(7,8,9))
364
Array
(
[0] =>
[1] =>
[2] =>
)
← array_map('_' , array(1,2,3), array(4,5,6), array(7,8,9)) (expected array array(array(1,4,7), array(2,5,8), array(3,6,9)) i.e.
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 4
            [2] => 7
        )

    [1] => Array
        (
            [0] => 2
            [1] => 5
            [2] => 8
        )

    [2] => Array
        (
            [0] => 3
            [1] => 6
            [2] => 9
        )

)
)
365
Array
(
[0] => Array
(
[0] => func_get_args
[1] => Array
(
[0] => 1
[1] => 2
[2] => 3
)

[2] => Array
(
[0] => 4
[1] => 5
[2] => 6
)

[3] => Array
(
[0] => 7
[1] => 8
[2] => 9
)

)

[1] => Array
(
[0] => func_get_args
[1] => Array
(
[0] => 1
[1] => 2
[2] => 3
)

[2] => Array
(
[0] => 4
[1] => 5
[2] => 6
)

[3] => Array
(
[0] => 7
[1] => 8
[2] => 9
)

)

[2] => Array
(
[0] => func_get_args
[1] => Array
(
[0] => 1
[1] => 2
[2] => 3
)

[2] => Array
(
[0] => 4
[1] => 5
[2] => 6
)

[3] => Array
(
[0] => 7
[1] => 8
[2] => 9
)

)

)
← array_map('func_get_args', array(1,2,3), array(4,5,6), array(7,8,9))
366TRUE← semicolon($a=array(2,1,1),  $b=array(0,8,9), array_multisort($a,$b))
367
Array
(
[0] => 1
[1] => 1
[2] => 2
)
← semicolon($a=array(2,1,1),  $b=array(0,8,9),        array_multisort($a,$b), $a)
368
Array
(
[0] => 8
[1] => 9
[2] => 0
)
← semicolon($a=array(2,1,1),  $b=array(0,8,9),        array_multisort($a,$b), $b)
369
Array
(
[0] => 1
[1] => 2
[2] => 33
[3] => 33
)
← array_pad(array(1,2), 4, 33)
3703← semicolon($a=array(1,2,3), array_pop($a))
371
Array
(
[0] => 1
[1] => 2
)
← semicolon($a=array(1,2,3),     array_pop($a), $a)
3727.5← array_product(array(3,5,1/2))
3734← semicolon($a=array(6,7,8), array_push($a,9))
374
Array
(
[0] => 6
[1] => 7
[2] => 8
[3] => 9
)
← semicolon($a=array(6,7,8),     array_push($a,9), $a)
3755← semicolon($a=array(6,7,8), array_push($a,9,0))
376
Array
(
[0] => 6
[1] => 7
[2] => 8
[3] => 9
[4] => 0
)
← semicolon($a=array(6,7,8),     array_push($a,9,0), $a)
3770←array_rand(array(1,2,3)   )
378
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
379
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
380
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
381
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
382
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
383
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
)
←array_rand(array(1,2,3), 3)
384'integer'← gettype(array_rand(array('a','b','c')))
385'string'← gettype(array_rand(array('a'=>1,'b'=>1,'c'=>1)))
386WARNING← gettype(array_rand(array('a','b','c'), null))
387WARNING← gettype(array_rand(array('a','b','c'), 0))
388'integer'← gettype(array_rand(array('a','b','c'), 1))
389'array'← gettype(array_rand(array('a','b','c'), 2))
3906← array_reduce(array(1,2,3),     create_function('$sum,$add','return $sum  +$add'.chr(59)), 0)
39114← array_reduce(array(1,2,3,4,5), create_function('$sum,$add','return $sum  +$add'.chr(59)), -1)
39211← array_reduce(array(1,2,3),     create_function('$sum,$add','return $sum*2+$add'.chr(59)), 0)
39326← array_reduce(array(1,2,3,4),   create_function('$sum,$add','return $sum*2+$add'.chr(59)), 0)
394'_abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59)), '_') (expected string '0abc')
395'abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59)),  '') (expected string '0abc')
396'abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59)),null) (expected string '0abc')
397'abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59))     )
398'abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59)),null) (expected string '0abc')
399'9_abc'← array_reduce(array('a','b','c'), create_function('$s,$a','return $s.$a'.chr(59)), '9_') (expected string '9abc')
4006.9← array_reduce(array(1,2,3),     create_function('$sum,$add','return $sum  +$add'.chr(59)), 0.9) (expected integer 6 i.e. 6)
4017.9← array_reduce(array(1,2,3),     create_function('$sum,$add','return $sum  +$add'.chr(59)), 1.9) (expected integer 7 i.e. 7)
4023.1← array_reduce(array(1,2,3),     create_function('$sum,$add','return $sum  +$add'.chr(59)), -2.9) (expected integer 4 i.e. 4)
403
Array
(
[0] => 3
[1] => 2
[2] => 1
)
← array_reverse(array(1,2,3))
404
Array
(
[2] => 3
[1] => 2
[0] => 1
)
← array_reverse(array(1,2,3), true)
405'b'← array_search('bravo', array('a'=>'alpha', 'b'=>'bravo', 'c'=>'charlie'))
4062← array_search('22', array(1=>11, 2=>22, 3=>33))
4072← array_search(22, array(1=>11, 2=>'22', 3=>33))
4082← array_search(22, array(1=>11, 2=>22, 3=>33), true)
4093← semicolon($a=array(3,2,1), array_shift($a))
410
Array
(
[0] => 2
[1] => 1
)
← semicolon($a=array(3,2,1),     array_shift($a), $a)
4114← semicolon($a=array(8,7,6), array_unshift($a,9))
412
Array
(
[0] => 9
[1] => 8
[2] => 7
[3] => 6
)
← semicolon($a=array(8,7,6),     array_unshift($a,9), $a)
4135← semicolon($a=array(8,7,6), array_unshift($a,0,9))
414
Array
(
[0] => 0
[1] => 9
[2] => 8
[3] => 7
[4] => 6
)
← semicolon($a=array(8,7,6),     array_unshift($a,0,9), $a)
415
Array
(
[0] => 7
[1] => 8
[2] => 9
)
← array_slice(array(6,7,8,9), 1)
416
Array
(
[0] => 7
[1] => 8
[2] => 9
)
← array_slice(array(6,7,8,9),-3)
417
Array
(
[0] => 7
[1] => 8
)
← array_slice(array(6,7,8,9), 1, 2)
418
Array
(
[0] => 7
[1] => 8
)
← array_slice(array(6,7,8,9), 1,-1)
419
Array
(
[0] => 7
[1] => 8
)
← array_slice(array(6,7,8,9),-3, 2)
420
Array
(
[0] => 7
[1] => 8
)
← array_slice(array(6,7,8,9),-3,-1)
421
Array
(
[1] => 7
[2] => 8
)
← array_slice(array(6,7,8,9),-3,-1, true)
422
Array
(
[0] => 8
[1] => 9
)
← semicolon($a=array(6,7,8,9), array_splice($a, 2))
423
Array
(
[0] => 6
[1] => 7
)
← semicolon($a=array(6,7,8,9),              array_splice($a, 2), $a)
424
Array
(
[0] => 7
[1] => 8
)
← semicolon($a=array(6,7,8,9), array_splice($a, 1, 2, array('L','B')))
425
Array
(
[0] => 6
[1] => L
[2] => B
[3] => 9
)
← semicolon($a=array(6,7,8,9),              array_splice($a, 1, 2, array('L','B')), $a)
426
Array
(
[0] => 1
[1] => 2
[4] => 3
)
← array_unique(array(1,2,2,'2',3))
427
Array
(
[0] => CS
[1] => cs
[2] => 1
[3] => 2
[6] => 3
)
← array_unique(array('CS','cs',1,2,2,'2',3))
428
Array
(
[0] => a
[1] => A
)
← array_unique(array('a', 'A'))
429
Array
(
[0] => numeric
[1] => reindex
)
← array_values(array('a'=>'numeric', 'b'=>'reindex'))
430TRUE← semicolon($a=array(1,2,3), array_walk($a, create_function('&$v, $k', '$v*=2'.chr(59))))
431
Array
(
[0] => 2
[1] => 4
[2] => 6
)
← semicolon($a=array(1,2,3),        array_walk($a, create_function('&$v, $k', '$v*=2'.chr(59))), $a)
432TRUE← semicolon($a=array(1,2,3), array_walk($a, create_function('&$v, $k, $x', '$v*=$x'.chr(59)), 2))
433
Array
(
[0] => 2
[1] => 4
[2] => 6
)
← semicolon($a=array(1,2,3),        array_walk($a, create_function('&$v, $k, $x', '$v*=$x'.chr(59)), 2), $a)
434TRUE← semicolon($a=array(1,2,3), array_walk($a, create_function('&$v, $k', '$v*=2'.chr(59).'$v+=1'.chr(59))))
435
Array
(
[0] => 3
[1] => 5
[2] => 7
)
← semicolon($a=array(1,2,3),        array_walk($a, create_function('&$v, $k', '$v*=2'.chr(59).'$v+=1'.chr(59))), $a)
436ERROR← semicolon($a=array(1,2,3,array(4)), array_walk         ($a, create_function('&$v, $k', '$v*=2'.chr(59))))
437TRUE← semicolon($a=array(1,2,3,array(4)), array_walk_recursive($a, create_function('&$v, $k', '$v*=2'.chr(59))))
438
Array
(
[0] => 2
[1] => 4
[2] => 6
[3] => Array
(
[0] => 8
)

)
← semicolon($a=array(1,2,3,array(4)),        array_walk_recursive($a, create_function('&$v, $k', '$v*=2'.chr(59))), $a)
439TRUE← semicolon($a=array(7,8,9), arsort($a))
440
Array
(
[2] => 9
[1] => 8
[0] => 7
)
← semicolon($a=array(7,8,9),        arsort($a), $a)
441TRUE← semicolon($a=array(9,8,7), asort($a))
442
Array
(
[2] => 7
[1] => 8
[0] => 9
)
← semicolon($a=array(9,8,7),        asort($a), $a)
443TRUE← semicolon($a=array(9,8,7), sort($a))
444
Array
(
[0] => 7
[1] => 8
[2] => 9
)
← semicolon($a=array(9,8,7),        sort($a), $a)
445
Array
(
[0] => 7
[1] => 8
[2] => 9
)
← semicolon($a=array(9,8,7),        sort($a), $a)
446
Array
(
[i] => 11
[j] => joost
)
← semicolon($i=11,  $j='joost',  $a=compact('i', array('j')), $a)
447
Array
(
[i] => 11
[j] => joost
[k] =>
)
← semicolon($i=11,  $j='joost',  $k=null,  $a=compact('i', array('j', 'k'), 'u'), $a)
4482← semicolon($a=array('i'=>11, 'j'=>'joost'), extract($a))
44911← semicolon($a=array('i'=>11, 'j'=>'joost'),     extract($a), $i)
450'joost'← semicolon($a=array('i'=>11, 'j'=>'joost'),     extract($a), $j)
451TRUE← in_array(333, array(1,2,'333',4))
452TRUE← in_array(333, array(1,2, 333 ,4), true)
453FALSE← in_array(333, array(1,2,'333',4), true)
454TRUE← in_array(333, array(1,2,'333',4), false)
455TRUE← semicolon($a=array(8=>1,7=>1,9=>1), ksort($a))
456
Array
(
[7] => 1
[8] => 1
[9] => 1
)
← semicolon($a=array(8=>1,7=>1,9=>1),        ksort($a), $a)
457TRUE← semicolon($a=array(8=>1,7=>1,9=>1), krsort($a))
458
Array
(
[9] => 1
[8] => 1
[7] => 1
)
← semicolon($a=array(8=>1,7=>1,9=>1),        krsort($a), $a)
459TRUE← semicolon($a=array('111','22'), natsort($a))
460
Array
(
[1] => 22
[0] => 111
)
← semicolon($a=array('111','22'),        natsort($a), $a)
461TRUE← semicolon($a=array('a111','a22','b3','a4'), natsort($a))
462
Array
(
[3] => a4
[1] => a22
[0] => a111
[2] => b3
)
← semicolon($a=array('a111','a22','b3','a4'),        natsort($a), $a)
463
Array
(
[1] => a99
[0] => a222
)
← semicolon($a=array('a222','a99'),                  natsort($a), $a)
464
Array
(
[1] => a99
[0] => a222
)
← semicolon($a=array('a222','a99'),              natcasesort($a), $a)
465
Array
(
[1] => a99
[0] => A222
)
← semicolon($a=array('A222','a99'),              natcasesort($a), $a)
466
Array
(
[0] => A222
[1] => a99
)
← semicolon($a=array('A222','a99'),                  natsort($a), $a)
467TRUE← semicolon($a=array('a111','a22','b3','a4'), sort($a, SORT_NUMERIC))
468
Array
(
[0] => a4
[1] => b3
[2] => a22
[3] => a111
)
← semicolon($a=array('a111','a22','b3','a4'),  true==sort($a, SORT_NUMERIC), $a)
469
Array
(
[0] => a4
[1] => a22
[2] => a111
[3] => b3
)
← semicolon($a=array('b3','a111','a22','a4'),  true==sort($a, SORT_NUMERIC), $a)
470
Array
(
[0] => a111
[1] => a4
[2] => a22
[3] => b3
)
← semicolon($a=array('b3','a22','a4','a111'),  true==sort($a, SORT_NUMERIC), $a)
471
Array
(
[0] => a111
[1] => b3
[2] => a4
[3] => a22
)
← semicolon($a=array('a22','a4','b3','a111'),  true==sort($a, SORT_NUMERIC), $a)
472
Array
(
[0] => 1111
[1] => 222
[2] => 33
[3] => 4
)
← semicolon($a=array(4,33,222,1111),          true==sort($a, SORT_STRING), $a)
473
Array
(
[0] => 4
[1] => 33
[2] => 222
[3] => 1111
)
← semicolon($a=array('1111','222','33','4'),  true==sort($a, SORT_NUMERIC), $a)
474
Array
(
[0] => 9
[1] => 8
[2] => 7
)
← semicolon($a=array(8,7,9),  true==rsort($a), $a)
475
Array
(
[0] => 7
[1] => 8
[2] => 9
)
← semicolon($a=array(8,7,9),  true== sort($a), $a)
476
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
← range(1,5)
477
Array
(
[0] => 5
[1] => 15
)
← range(5,24,10)
478
Array
(
[0] => 5
[1] => 15
[2] => 25
)
← range(5,25,10)
479
Array
(
[0] => 5
[1] => 15
[2] => 25
)
← range(5,26,10)
480
Array
(
[0] => 25
[1] => 15
[2] => 5
)
← range(25,5,-10)
481
Array
(
[0] => 5
[1] => 4
[2] => 3
[3] => 2
[4] => 1
)
← range(5,1,-1)
482
Array
(
[0] => a
[1] => b
[2] => c
[3] => d
[4] => e
)
← range('a', 'e')
483
Array
(
[0] => a
[1] => c
[2] => e
)
← range('a', 'e', 2)
484
Array
(
[0] => a
[1] => b
[2] => c
)
← range('amulet', 'credenza')
485'afkpuz'← join('', range('a', 'z', 5))
486
Array
(
    [0] => 3
    [1] => 1
    [2] => 2
    [3] => 4
    [4] => 5
)
←semicolon($a=array(1,2,3,4,5), shuffle($a), $a)
487
Array
(
[0] => 1
[1] => 2
[2] => 3
)
← semicolon($a=array(2,3,1),  true==usort($a, create_function('$L,$R', 'return $L-$R'.chr(59))), $a)
488
Array
(
[0] => 3
[1] => 2
[2] => 1
)
← semicolon($a=array(2,3,1),  true==usort($a, create_function('$L,$R', 'return $R-$L'.chr(59))), $a)
489
Array
(
[0] => a
[1] => B
[2] => c
)
← semicolon($a=array('c','a','B'),  true==usort($a, 'strcasecmp'), $a)
490
Array
(
[0] => B
[1] => a
[2] => c
)
← semicolon($a=array('c','a','B'),  true==usort($a, 'strcmp'    ), $a)
491
Array
(
[0] => B
[1] => a
[2] => c
)
← semicolon($a=array('c','a','B'),  true== sort($a              ), $a)
492
Array
(
[1] => k9
[0] => K12
)
← semicolon($a=array('K12','k9'),  true==uasort($a, 'strnatcasecmp'), $a)
493
Array
(
[1] => k9
[0] => K12
)
← semicolon($a=array('K12','k9'),  true==natcasesort($a            ), $a)
494
Array
(
[b4] => 0
[b12] => 0
)
← semicolon($a=array('b12'=>0,'b4'=>0),  true==uksort($a, 'strnatcmp'), $a)
4953← semicolon($a=array(1,2,3),    end($a), current($a))
496FALSE← semicolon($a=array(1,2,3),    end($a), next($a))
497FALSE← semicolon($a=array(1,2,3),  reset($a), prev($a))
498FALSE← semicolon($a=array(1,2,3),    end($a),  next($a), current($a))
499FALSE← semicolon($a=array(1,2,3),  reset($a),  prev($a), current($a))
500NULL← semicolon($a=array(1,2,3),    end($a),  next($a), key($a))
501NULL← semicolon($a=array(1,2,3),  reset($a),  prev($a), key($a))
502'b'← semicolon($a=array('b','e'),  reset($a), current($a))
503'b'← semicolon($a=array('b','e'), current($a))
504'b'← semicolon($a=array('b','e'), reset($a))
505'e'← semicolon($a=array('b','e'), end($a))
50688← semicolon($a=array(88=>888),  list($key,$value)=each($a), $key)
507888← semicolon($a=array(88=>888),  list($key,$value)=each($a), $value)
508
Array
(
[1] => 888
[value] => 888
[0] => 88
[key] => 88
)
← semicolon($a=array(88=>888), each($a))
50988← semicolon($a=array(88=>888), key($a))
510FALSE← semicolon($a=array(), current($a))
511FALSE← semicolon($a=array(),     pos($a))
512FALSE← semicolon($a=array(),   reset($a))
513FALSE← semicolon($a=array(),     end($a))
5142← semicolon($a=array(1,2,3), next($a))
5158← semicolon($a=array(7,8,9),  end($a), prev($a))
516
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
← (array(1,2,3,4) + array(3,4,5,6))
517
Array
(
[0] => 3
[1] => 4
[2] => 5
[3] => 6
)
← (array(3,4,5,6) + array(1,2,3,4))
518
Array
(
[0] => 3
[1] => 4
[2] => 5
[3] => 6
)
← (array(3,4,5,6) + array(1,2,3,4))
519
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 7
)
← (array(1,2,3,4) + array(3,4,5,6,7))
520ERROR← (array(1,2,3,4) - array(3,4,5,6))
521ERROR← (array(1,2,3,4) * array(3,4,5,6))
522ERROR← (array(1,2,3,4) / array(3,4,5,6))
5230← (array(1,2,3,4) % array(3,4,5,6))
5241← (array(11,21,31,41) % 10)
5251← (array(12,21,31,41) % 10)
5261← (array(11,22,32,42) % 10)
5271← (array(16,26,36,46,56) % 10)
5280← (array(11,21,31,41) % array(10,10,10,10))
5291← (array(1,2,3,4) | array(3,4,5,6))
Array keys
String
quotes
Integer ⇔ String
String ↔ Array
893
Array
(
[0] => I
[1] => am
)
← explode(" ", "I am")
894
Array
(
[0] => I am
)
← explode(";", "I am")
895
Array
(
[0] =>
)
← explode(";", "")
896
Array
(
[0] => I
[1] => am
[2] => a
[3] => dog
)
← explode(" ", "I am a dog")
897
Array
(
[0] => I
[1] => am
[2] => a dog
)
← explode(" ", "I am a dog",3)
898
Array
(
[0] => I
[1] => am a dog
)
← explode(" ", "I am a dog",2)
899
Array
(
[0] => I
[1] => am
)
← explode(" ", "I am a dog",-2)
900
Array
(
[0] => It
[1] => is
)
← explode(" ", "It is I",-1)
901
Array
(
[0] => It
[1] => is I
)
← explode(" ", "It is I",2)
902'It is I'← implode(' ', array('It', 'is', 'I'))
903'I am'← implode(' ', array('I', 'am'))
904'It is I'← join(' ', array('It', 'is', 'I'))
905'I am'← join(' ', array('I', 'am'))
906'1 2 3'← join(' ', array(1,2,3))
907'1,2,3'← join(',', array(1,2,3))
908'123'← join('',  array(1,2,3))
909''← join(     array())
910''← implode(     array())
911''← join(',', array())
912''← implode(',', array())
913'abArray'← join(     array('a','b',array('c','d',array('e','f')))) (expected string 'abArray'.NOTICE('Array to string conversion') i.e. 'abArray <span style='color:red;'>Notice: Array to string conversion</span>')
914'a-b-Array'← join('-', array('a','b',array('c','d',array('e','f')))) (expected string 'a-b-Array'.NOTICE('Array to string conversion') i.e. 'a-b-Array <span style='color:red;'>Notice: Array to string conversion</span>')
915'abArray'← implode(  array('a','b',array('c','d',array('e','f')))) (expected string 'abArray'.NOTICE('Array to string conversion') i.e. 'abArray <span style='color:red;'>Notice: Array to string conversion</span>')
String Fancy
Interpolation
Hashing, Encoding, Encryption
996'ab/cd/e/'← chunk_split('abcde', 2, '/')
997'796f210a'← bin2hex("yo!\n")
998'6f6b'← bin2hex("ok")
999FALSE← convert_uuencode('')
1000'!80``0A`0A'← convert_uuencode('a')
1001'#;VL*0A`0A'← convert_uuencode('ok0A')
10023904355907← crc32('a') (expected integer -390611389 i.e. -390611389)
10034← strlen(          ("\\" . "'" . '"' . "\0"))
10048← strlen(addslashes("\\" . "'" . '"' . "\0"))
10052← strlen(          ("\\\\"))
10061← strlen(          ("\\"))
10072← strlen(addslashes("\\"))
1008260← semicolon($all=count_chars('',4),  $s=addslashes($all), strlen($s))
1009'\0'← addslashes("\0")
1010'a\-list'← addcslashes("a-list", "-")
1011'any00body'← addcslashes("any\0body", "-")
1012'any\000body'← addcslashes("any\0body", "\0")
1013'00blahblah'← semicolon($s = '00blahblah', $s)
10149← semicolon($s = '00blahblah', strlen($s))
1015257← semicolon($all=count_chars('',4),     $s=addcslashes($all, '-'), strlen($s))
1016256← semicolon($all=count_chars("\0",4),  $s=addcslashes($all, '-'), strlen($s))
1017256← semicolon($all=count_chars("\0",4),  $s=addcslashes($all, '*'), strlen($s))
1018259← semicolon($all=count_chars('',4),       $s=addcslashes($all, "\0"), strlen($s))
1019256← semicolon($all=count_chars('',4),       $s=addcslashes($all, ''), strlen($s))
1020'\000'← addcslashes("\x00", "\x00")
1021'\001'← addcslashes("\x01", "\x01")
1022'\002'← addcslashes("\x02", "\x02")
1023'\003'← addcslashes("\x03", "\x03")
1024'\004'← addcslashes("\x04", "\x04")
1025'\005'← addcslashes("\x05", "\x05")
1026'\006'← addcslashes("\x06", "\x06")
1027'\a'← addcslashes("\x07", "\x07")
1028'\b'← addcslashes("\x08", "\x08")
1029'\t'← addcslashes("\x09", "\x09")
1030'\n'← addcslashes("\x0A", "\x0A")
1031'\v'← addcslashes("\x0B", "\x0B")
1032'\f'← addcslashes("\x0C", "\x0C")
1033'\r'← addcslashes("\x0D", "\x0D")
1034'\016'← addcslashes("\x0E", "\x0E")
1035'\017'← addcslashes("\x0F", "\x0F")
1036'\036'← addcslashes("\x1E", "\x1E")
1037'\037'← addcslashes("\x1F", "\x1F")
1038'\ '← addcslashes("\x20", "\x20")
1039'\!'← addcslashes("\x21", "\x21")
1040'\#'← addcslashes("\x23", "\x23")
1041'\@\*\$\%'← addcslashes("@*$%", "@*$%")
1042''← html_entity_decode("")
1043'"&#039;<>&'← html_entity_decode("&quot;&#039;&lt;&gt;&amp;")
1044'"&#039;<>&'← html_entity_decode("&quot;&#039;&lt;&gt;&amp;", ENT_COMPAT)
1045'"'<>&'← html_entity_decode("&quot;&#039;&lt;&gt;&amp;", ENT_QUOTES)
1046'&quot;&#039;<>&'← html_entity_decode("&quot;&#039;&lt;&gt;&amp;", ENT_NOQUOTES)
1047''← htmlentities("")
1048'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&")
1049'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&")
1050'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_COMPAT)
1051'&quot;&#039;&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_QUOTES)
1052'"'&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_NOQUOTES)
1053'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_COMPAT, "ISO-8859-1")
1054'&quot;'&lt;&gt;&amp;amp;'← htmlentities("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1")
1055'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_COMPAT, "ISO-8859-1", false)
1056'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&", ENT_COMPAT, "ISO-8859-1", true)
1057'&quot;'&lt;&gt;&amp;'← htmlentities("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1", false)
1058'&quot;'&lt;&gt;&amp;amp;'← htmlentities("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1", true)
1059''← htmlspecialchars("")
1060'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&")
1061'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&")
1062'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_COMPAT)
1063'&quot;&#039;&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_QUOTES)
1064'"'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_NOQUOTES)
1065'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_COMPAT, "ISO-8859-1")
1066'&quot;'&lt;&gt;&amp;amp;'← htmlspecialchars("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1")
1067'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_COMPAT, "ISO-8859-1", false)
1068'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&", ENT_COMPAT, "ISO-8859-1", true)
1069'&quot;'&lt;&gt;&amp;'← htmlspecialchars("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1", false)
1070'&quot;'&lt;&gt;&amp;amp;'← htmlspecialchars("\"'<>&amp;", ENT_COMPAT, "ISO-8859-1", true)
1071''← htmlspecialchars_decode("")
1072'"&#039;<>&'← htmlspecialchars_decode("&quot;&#039;&lt;&gt;&amp;")
1073'"&#039;<>&'← htmlspecialchars_decode("&quot;&#039;&lt;&gt;&amp;", ENT_COMPAT)
1074'"'<>&'← htmlspecialchars_decode("&quot;&#039;&lt;&gt;&amp;", ENT_QUOTES)
1075'&quot;&#039;<>&'← htmlspecialchars_decode("&quot;&#039;&lt;&gt;&amp;", ENT_NOQUOTES)
1076''← nl2br("")
1077'to be'← nl2br("to be")
1078'to<br />0Abe'← nl2br("to\nbe")
1079'0cc175b9c0f1b6a831c399e269772661'← md5('a')
1080'0cc175b9c0f1b6a831c399e269772661'← bin2hex(md5('a', TRUE))
1081'0CC1uB9C0F1B6A81C399E2iw&a'← md5('a', TRUE)
1082'86f7e437faa5a7fce15d1ddcb9eaeaea377667b8'← sha1('a')
1083'86f7e437faa5a7fce15d1ddcb9eaeaea377667b8'← bin2hex(sha1('a', TRUE))
1084'86F7E47FAA5A7FCE1]1DDCB9EAEAEA7vgB8'← sha1('a', TRUE)
1085''← quoted_printable_decode('')
1086'abc123'← quoted_printable_decode('abc123')
1087'MIME 97 RFC2045'← quoted_printable_decode('MIME =97 RFC2045')
1088' \. \\ \+ \* \? \[ \^ \] \( \$ \) '← quotemeta(' . \\ + * ? [ ^ ] ( $ ) ')
108911← strlen(         ('.\\+*?[^]($)'))
109022← strlen(quotemeta('.\\+*?[^]($)'))
1091267← semicolon($all=count_chars('',4),  $s=quotemeta($all), strlen($s))
1092'00'← quotemeta("\0")
1093''← str_rot13('')
1094'Jnvgvat 4 jvgf'← str_rot13('Waiting 4 wits')
1095'wits'← str_rot13('jvgf')
1096'Time flies, but you're the pilot.'← strip_tags("Time <i>flies</i>, but you're the <b>pilot</b>.")
1097'Time fly, but you <b>pilot</b>.'← strip_tags('Time <i>fly</i>, but you <b>pilot</b>.', '<u><b>')
1098'Time fly, but you pilot.'← strip_tags('Time <i>fly</i>, but you <b>pilot</b>.')
1099'Time fly, but you pilot.'← strip_tags('Time <i>fly</i>, but you <b>pilot</b>.', 'u,b')
1100'Time fly, but you pilot.'← strip_tags('Time <i>fly</i>, but you <b>pilot</b>.', 'u b')
1101'Time fly, but you pilot.'← strip_tags('Time <i>fly</i>, but you <b>pilot</b>.', 'ub')
1102'no <i>old</i> bold pilots'← strip_tags('no <i>old</i> <b>bold</b> pilots', '<i><li>')
1103'\'0D0A'← stripcslashes('\\\\'.'\\\''.'\\x0D'.'\\n')
1104'\"0D0A'← stripcslashes('\\\\'.'\\"'.'\\x0D'.'\\n')
1105'\"0D0A00'← stripcslashes('\\\\'.'\\"'.'\\x0D'.'\\n'.'\\0')
1106'\"0D0D0D0D0A0900$*'← stripcslashes('\\\\'.'\\"'.'\\x0D'.'\\015'.'\\15'.'\\r\\n\\t\\0\\$\\*')
1107'\"x0D001515rnt00$*'← stripslashes('\\\\'.'\\"'.'\\x0D'.'\\015'.'\\15'.'\\r\\n\\t\\0\\$\\*')
1108'\"00'← stripslashes('\\\\'.'\\"'.'\\0')
1109'a00z'← stripcslashes('a\\0z')
1110'a00z'← stripslashes('a\\0z')
1111'a00z'← stripcslashes('a\\00z')
1112'a000z'← stripslashes('a\\00z')
1113'a00z'← stripcslashes('a\\000z')
1114'a0000z'← stripslashes('a\\000z')
1115'a000z'← stripcslashes('a\\0000z')
1116'a00000z'← stripslashes('a\\0000z')
1117''← urlencode("")
1118'C1A9E9'← html_entity_decode("&Aacute;&copy;&eacute;")
1119'C1AA9}~7F010D1F '← html_entity_decode("&#193;&#65;&#169;&#125;&#126;&#127;&#001;&#013;&#031;&#032;")
1120'&Aacute;&#193;&#65;&copy;&#169;&eacute;&#125;&#126;&#127;&#001;&#013;&#031;&#032;'← htmlspecialchars_decode("&Aacute;&#193;&#65;&copy;&#169;&eacute;&#125;&#126;&#127;&#001;&#013;&#031;&#032;")
1121'&#8804;&#8970;&mdash;&#8212;&phi;&#966;&#928;&weierp;&#8472;&zwnj;&#8204;&#128;&#133;&#159;'← html_entity_decode(     "&#8804;&#8970;&mdash;&#8212;&phi;&#966;&#928;&weierp;&#8472;&zwnj;&#8204;&#128;&#133;&#159;")
1122'&#8804;&#8970;&mdash;&#8212;&phi;&#966;&#928;&weierp;&#8472;&zwnj;&#8204;&#128;&#133;&#159;'← htmlspecialchars_decode("&#8804;&#8970;&mdash;&#8212;&phi;&#966;&#928;&weierp;&#8472;&zwnj;&#8204;&#128;&#133;&#159;")
1123'&quot;&amp;&lt;&gt;'← htmlentities(    '"&<>')
1124'&quot;&amp;&lt;&gt;'← htmlspecialchars('"&<>')
1125'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'← htmlentities(    'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')
1126'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'← htmlspecialchars('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')
1127'!#$%()*+,-./0123456789:;=?@[]^_`{|}~'← htmlentities(    '!#$%()*+,-./0123456789:;=?@[]^_`{|}~')
1128'!#$%()*+,-./0123456789:;=?@[]^_`{|}~'← htmlspecialchars('!#$%()*+,-./0123456789:;=?@[]^_`{|}~')
1129'''← htmlentities(    "'")
1130'''← htmlspecialchars("'")
1131'&#039;'← htmlentities(    "'", ENT_QUOTES)
1132'&#039;'← htmlspecialchars("'", ENT_QUOTES)
1133'\'← htmlentities(    '\\')
1134'\'← htmlspecialchars('\\')
1135'&nbsp;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&reg;&macr;&deg;&plusmn;&sup2;&sup3;'← htmlentities('A0A1A2A3A4A5A6A7A8A9AAABACAEAFB0B1B2B3')
1136'&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;'← htmlentities('B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3')
1137'&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;'← htmlentities('C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3')
1138'&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;'← htmlentities('D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3')
1139'&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;'← htmlentities('E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3')
1140'&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;'← htmlentities('F4F5F6F7F8F9FAFBFCFDFEFF')
1141'A0A1A2A3A4A5A6A7A8A9AAABACAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF'← htmlspecialchars('A0A1A2A3A4A5A6A7A8A9AAABACAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF')
1142'7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9F&nbsp;'← htmlentities("\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0")
1143'7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0'← htmlspecialchars("\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0")
1144'A0A1A2A3A4A5A6A7A8A9AAABACAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF'← html_entity_decode('&nbsp;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;')
1145'&nbsp;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&reg;&macr;&deg;&plusmn;&sup2;&sup3;'← htmlspecialchars_decode('&nbsp;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&reg;&macr;&deg;&plusmn;&sup2;&sup3;')
1146'&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;'← htmlspecialchars_decode('&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;')
1147'&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;'← htmlspecialchars_decode('&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;')
1148'&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;'← htmlspecialchars_decode('&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;')
1149'&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;'← htmlspecialchars_decode('&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;')
1150'&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;'← htmlspecialchars_decode('&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;')
1151
Array
(
    ["] => &quot;
    [<] => &lt;
    [>] => &gt;
    [&] => &amp;
)
←get_html_translation_table()
1152
Array
(
    ["] => &quot;
    [<] => &lt;
    [>] => &gt;
    [&] => &amp;
)
←get_html_translation_table(HTML_SPECIALCHARS)
1153
Array
(
    [A0] => &nbsp;
    [A1] => &iexcl;
    [A2] => &cent;
    [A3] => &pound;
    [A4] => &curren;
    [A5] => &yen;
    [A6] => &brvbar;
    [A7] => &sect;
    [A8] => &uml;
    [A9] => &copy;
    [AA] => &ordf;
    [AB] => &laquo;
    [AC] => &not;
    [AD] => &shy;
    [AE] => &reg;
    [AF] => &macr;
    [B0] => &deg;
    [B1] => &plusmn;
    [B2] => &sup2;
    [B3] => &sup3;
    [B4] => &acute;
    [B5] => &micro;
    [B6] => &para;
    [B7] => &middot;
    [B8] => &cedil;
    [B9] => &sup1;
    [BA] => &ordm;
    [BB] => &raquo;
    [BC] => &frac14;
    [BD] => &frac12;
    [BE] => &frac34;
    [BF] => &iquest;
    [C0] => &Agrave;
    [C1] => &Aacute;
    [C2] => &Acirc;
    [C3] => &Atilde;
    [C4] => &Auml;
    [C5] => &Aring;
    [C6] => &AElig;
    [C7] => &Ccedil;
    [C8] => &Egrave;
    [C9] => &Eacute;
    [CA] => &Ecirc;
    [CB] => &Euml;
    [CC] => &Igrave;
    [CD] => &Iacute;
    [CE] => &Icirc;
    [CF] => &Iuml;
    [D0] => &ETH;
    [D1] => &Ntilde;
    [D2] => &Ograve;
    [D3] => &Oacute;
    [D4] => &Ocirc;
    [D5] => &Otilde;
    [D6] => &Ouml;
    [D7] => &times;
    [D8] => &Oslash;
    [D9] => &Ugrave;
    [DA] => &Uacute;
    [DB] => &Ucirc;
    [DC] => &Uuml;
    [DD] => &Yacute;
    [DE] => &THORN;
    [DF] => &szlig;
    [E0] => &agrave;
    [E1] => &aacute;
    [E2] => &acirc;
    [E3] => &atilde;
    [E4] => &auml;
    [E5] => &aring;
    [E6] => &aelig;
    [E7] => &ccedil;
    [E8] => &egrave;
    [E9] => &eacute;
    [EA] => &ecirc;
    [EB] => &euml;
    [EC] => &igrave;
    [ED] => &iacute;
    [EE] => &icirc;
    [EF] => &iuml;
    [F0] => &eth;
    [F1] => &ntilde;
    [F2] => &ograve;
    [F3] => &oacute;
    [F4] => &ocirc;
    [F5] => &otilde;
    [F6] => &ouml;
    [F7] => &divide;
    [F8] => &oslash;
    [F9] => &ugrave;
    [FA] => &uacute;
    [FB] => &ucirc;
    [FC] => &uuml;
    [FD] => &yacute;
    [FE] => &thorn;
    [FF] => &yuml;
    ["] => &quot;
    [<] => &lt;
    [>] => &gt;
    [&] => &amp;
)
←get_html_translation_table(HTML_ENTITIES)
Worldly
1154
Array
(
    [decimal_point] => .
    [thousands_sep] => 
    [int_curr_symbol] => 
    [currency_symbol] => 
    [mon_decimal_point] => 
    [mon_thousands_sep] => 
    [positive_sign] => 
    [negative_sign] => 
    [int_frac_digits] => 127
    [frac_digits] => 127
    [p_cs_precedes] => 127
    [p_sep_by_space] => 127
    [n_cs_precedes] => 127
    [n_sep_by_space] => 127
    [p_sign_posn] => 127
    [n_sign_posn] => 127
    [grouping] => Array
        (
        )

    [mon_grouping] => Array
        (
        )

)
←localeconv()
1155'.'← semicolon($a=localeconv(), $a["decimal_point"])
1156NULL← nl_langinfo(CURRENCY_SYMBOL) (expected string '')
1157'19.50'← money_format("%i",   19.5)
1158'19.50'← money_format("%.2i", 19.5)
1159'19.50'← money_format("%.2n", 19.5)
1160'en_US'← setlocale(LC_MONETARY, "en_US")
1161'USD 19.50'← money_format("%i",   19.5)
1162'USD 19.50'← money_format("%.2i", 19.5)
1163'$19.50'← money_format("%.2n", 19.5)
1164'en_GB'← setlocale(LC_MONETARY, "en_GB")
1165'GBP19.50'← money_format("%i",   19.5) (expected string "GBP 19.50" i.e. 'GBP 19.50')
1166'GBP19.50'← money_format("%.2i", 19.5) (expected string "GBP 19.50" i.e. 'GBP 19.50')
1167'A319.50'← money_format("%.2n", 19.5)
1168'1,235'← number_format(1234.56)
1169'1,234.56'← number_format(1234.56,2)
1170'1;234:56'← number_format(1234.56,2,":",";")
1171'en_US'← setlocale(LC_MONETARY, "en_US")
1172'.'← semicolon($a=localeconv(), $a["decimal_point"])
1173
Array
(
    [decimal_point] => .
    [thousands_sep] => 
    [int_curr_symbol] => USD 
    [currency_symbol] => $
    [mon_decimal_point] => .
    [mon_thousands_sep] => ,
    [positive_sign] => 
    [negative_sign] => -
    [int_frac_digits] => 2
    [frac_digits] => 2
    [p_cs_precedes] => 1
    [p_sep_by_space] => 0
    [n_cs_precedes] => 1
    [n_sep_by_space] => 0
    [p_sign_posn] => 1
    [n_sign_posn] => 1
    [grouping] => Array
        (
        )

    [mon_grouping] => Array
        (
            [0] => 3
            [1] => 3
        )

)
←localeconv()
1174NULL← nl_langinfo(CURRENCY_SYMBOL) (expected string '')
Output
File I/O
Functions
Object
Basics
Literal
Comparison
Assignment
Constructor - Same Name
Constructor - __construct()
Destructor - __destruct()
Inheritance
static
const
interface
instanceof 2
__toString
clone, __clone()
__autoload
private, protected, public
Magic Constants v5
Exception
include
__set() __get()
__call()
instanceof
is_a()
is_subclass_of()
get_class()
__set_state
__sleep(), __wakeup()
method_exists(), property_exists(), is_callable()
1324TRUE← semicolon($o=new EX, property_exists($o, "p"))
1325FALSE← semicolon($o=new EX, property_exists($o, "m"))
1326FALSE← semicolon($o=new EX, property_exists($o, "x"))
1327TRUE← semicolon($o=new EX, property_exists("EX", "p"))
1328FALSE← semicolon($o=new EX, property_exists("EX", "m"))
1329FALSE← semicolon($o=new EX, property_exists("EX", "x"))
1330TRUE← semicolon($o=new EX, method_exists($o, "m"))
1331FALSE← semicolon($o=new EX, method_exists($o, "p"))
1332FALSE← semicolon($o=new EX, method_exists($o, "x"))
1333TRUE← semicolon($o=new EX, method_exists("EX", "m"))
1334FALSE← semicolon($o=new EX, method_exists("EX", "p"))
1335FALSE← semicolon($o=new EX, method_exists("EX", "x"))
1336TRUE← semicolon($o=new EX, is_callable(array($o, "m")))
1337FALSE← semicolon($o=new EX, is_callable(array($o, "p")))
1338FALSE← semicolon($o=new EX, is_callable(array($o, "x")))
1339TRUE← semicolon($o=new EX, is_callable(array("EX", "m"))) (expected string TRUE . STRICT("Non-static method EX::m() cannot be called statically") i.e. '1 <span style='color:red;'>Strict: Non-static method EX::m() cannot be called statically</span>')
1340FALSE← semicolon($o=new EX, is_callable(array("EX", "p")))
1341FALSE← semicolon($o=new EX, is_callable(array("EX", "x")))
Regular Expressions
Basics
preg_grep()
preg_match()
preg_quote()
1366'\. \\ \+ \* \? \[ \^ \] \$ \( \) \{ \} \= \! \< \> \| \: \/'← preg_quote('. \\ + * ? [ ^ ] $ ( ) { } = ! < > | : /','/')
136721← preg_match_all('/\\\\/',preg_quote('\\.+*?[^]$(){}=!<>|:/','/'),$a)
136821← substr_count(preg_quote('\\.+*?[^]$(){}=!<>|:/','/'),'\\')
136922← strlen(          ('\\ .+*?[^]$(){}=!<>|: /'))
137042← strlen(preg_quote('\\ .+*?[^]$(){}=!<>|: /','/'))
137120← strlen(          ('\\.+*?[^]$(){}=!<>|:/'))
137240← strlen(preg_quote('\\.+*?[^]$(){}=!<>|:/','/'))
1373'\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:\/'← preg_quote('\\' . '.+*?[^]$(){}=!<>|:/','/')
1374' \\ '← preg_quote(' \\ ')
1375279← semicolon($all=count_chars('',4),  $s=preg_quote($all), strlen($s)) (expected integer 256+19+3 i.e. 278)
13760← strlen(preg_quote(""))
13771← strlen(          ("\\"))
13782← strlen(preg_quote("\\"))
13791← strlen(          ("\0"))
13804← strlen(preg_quote("\0"))
1381'\000'← (preg_quote("\0"))
13821← strlen(          ("\""))
13831← strlen(preg_quote("\""))
13841← strlen(          ("'"))
13851← strlen(preg_quote("'"))
13861← strlen(preg_quote("@"))
13871← strlen(preg_quote("#"))
13881← strlen(preg_quote("%"))
13891← strlen(preg_quote("_"))
13902← strlen(preg_quote("-")) (expected integer 1 i.e. 1)
13911← strlen(preg_quote(chr(59)))
13921← strlen(preg_quote(","))
13931← strlen(preg_quote("`"))
13941← strlen(preg_quote("~"))
13951← strlen(preg_quote("\x7F"))
13961← strlen(preg_quote("\x80"))
13971← strlen(preg_quote("\xFF"))
1398' \\ '← preg_quote(' \ ')
13991← semicolon($slashify='\.+*?[^]$(){}=!<>|:/',preg_match('/'.preg_quote($slashify,'/').'/', $slashify))
14001← preg_match('/' . preg_quote($slashify='\.+*?[^]$(){}=!<>|:/','/') . '/', $slashify)
14011← semicolon($s='\.+*?[^]$(){}=!<>|:/',preg_match('/'.preg_quote($s,'/').'/', "Backslashify before preg: $s"))
preg_split()
control characters
\Unicode patterns
14251← preg_match('/^---\pL---$/',   '---a---')
14261← preg_match('/^---\p{L}---$/', '---a---')
14271← preg_match('/^---\p{^L}---$/','---3---')
14281← preg_match('/^---\PL---$/',   '---3---')
14291← preg_match('/^---\P{L}---$/', '---3---')
14301← preg_match('/^---\P{^L}---$/','---a---')
14310← preg_match('/^---\pL---$/',   '---3---')
14320← preg_match('/^---\p{L}---$/', '---3---')
14330← preg_match('/^---\p{^L}---$/','---a---')
14340← preg_match('/^---\PL---$/',   '---a---')
14350← preg_match('/^---\P{L}---$/', '---a---')
14360← preg_match('/^---\P{^L}---$/','---3---')
14371← preg_match('/^---\pLu---$/',   '---Eu---')
14381← preg_match('/^---\p{Lu}---$/', '---E---')
14391← preg_match('/^---\p{^Lu}---$/','---e---')
14401← preg_match('/^---\PLu---$/',   '---3u---')
14411← preg_match('/^---\P{Lu}---$/', '---e---')
14421← preg_match('/^---\P{^Lu}---$/','---E---')
14430← preg_match('/^---\pLu---$/',   '---E---')
14440← preg_match('/^---\PLu---$/',   '---e---')
14450← preg_match('/^---\pLu---$/',   '---e---')
14460← preg_match('/^---\p{Lu}---$/', '---e---')
14470← preg_match('/^---\p{^Lu}---$/','---E---')
14480← preg_match('/^---\PLu---$/',   '---E---')
14490← preg_match('/^---\P{Lu}---$/', '---E---')
14500← preg_match('/^---\P{^Lu}---$/','---e---')
1451'1/4'← preg_replace('/BC/','1/4','BC')
14520← preg_match("/two\$/", "two\nLines")
14531← preg_match("/two\$/m","two\nLines")
14540← preg_match("/two\z/", "two\nLines")
14550← preg_match("/two\z/m","two\nLines")
14561← preg_match("/nes\z/", "two\nLines")
14571← preg_match("/nes\z/m","two\nLines")
14580← preg_match("/nes\z/", "two\nLines\n")
14590← preg_match("/nes\z/m","two\nLines\n")
14601← preg_match("/nes\Z/", "two\nLines\n")
14611← preg_match("/nes\Z/m","two\nLines\n")
14620← preg_match("/^Lines/", "two\nLines")
14631← preg_match("/^Lines/m","two\nLines")
1464'0D0A'← "\r\n"
14651← preg_match("/\\r\\n/","\r\n")
14661← preg_match("/\\t\\r\\n/","\t\r\n")
14671← preg_match("/\\t\\r\\n/","\x09\x0D\x0A")
14681← preg_match("/\\a\\f\\e/","\x07\x0C\x1B")
14691← preg_match('/^---\p{Sm}---$/','---=---')
14701← preg_match(   '/^\p{Sm}+$/',    '=')
14711← preg_match('/^---\p{Sm}---$/','---+---')
14721← preg_match(   '/^\p{Sm}+$/',    '+')
14731← preg_match('/^---\p{Sm}---$/','---D7---')
14740← preg_match(   '/^\p{Sm}+$/',    'D7') (expected integer 1 i.e. 1)
14750← preg_match(   '/^\p{Sm}+$/',    'D7D7')
14760← preg_match(   '/^\p{Sm}+$/',    chr(215)) (expected integer 1 i.e. 1)
14770← preg_match(  '/^[\p{Sm}]+$/',   'D7')
14780← preg_match(   '/^\p{Sm}*$/',    'D7')
14791← preg_match(    '/\p{Sm}*/',      'D7')
14800← preg_match(    '/\p{Sm}+/',      'D7') (expected integer 1 i.e. 1)
14811← preg_match(    '/\p{Sm}?/',      'D7')
14821← preg_match(   '/(\p{Sm})/',      'D7')
14831← preg_match(   '/(\p{Sm})+/',     'D7')
14840← preg_match(   '/(\p{Sm}+)/',     'D7') (expected integer 1 i.e. 1)
14850← preg_match(   '/[\p{Sm}]+/',     'D7')
14860← preg_match(   '/[\p{Sm}]/',      'D7')
14870← preg_match(    '/\p{Sm}{1,}/',   'D7') (expected integer 1 i.e. 1)
14881← preg_match(    '/\p{Sm}{1,1}/',  'D7')
14891← preg_match(    '/\p{Sm}{1,2}/',  'D7')
14901← preg_match(    '/\p{Sm}{1,999}/','D7')
14911← preg_match(    '/\p{Sm}{1}/',    'D7')
14921← preg_match(   '/^\p{Sm}$/',     'D7')
14931← preg_match(   '/^\p{Sm}{1}$/',  'D7')
14941← preg_match(   '/^\p{Sm}{1,1}$/','D7')
14951← preg_match(    '/\p{Sm}/',       'D7')
14961← preg_match(    '/\p{Sm}/',       'D7')
14970← preg_match(    '/\p{Sm}+/',      'D7') (expected integer 1 i.e. 1)
14981← preg_match(    '/\p{Po}/',       chr(191))
14991← preg_match(    '/\p{Po}+/',      chr(191))
15001← preg_match(   '/[\p{Po}]/',      chr(191))
15011← preg_match(   '/[\p{Po}]+/',     chr(191))
15021← preg_match(    '/\p{Lu}/',       chr(192))
15030← preg_match(    '/\p{Lu}+/',      chr(192)) (expected integer 1 i.e. 1)
15041← preg_match(    '/\p{Lu}{1}/',    chr(192))
15050← preg_match(    '/\w/',           chr(192)) (expected integer 1 i.e. 1)
15060← preg_match(    '/\w+/',          chr(192)) (expected integer 1 i.e. 1)
15070← preg_match(   '/[\w]+/',         chr(192)) (expected integer 1 i.e. 1)
15080← preg_match(   '/[\w]/',          chr(192)) (expected integer 1 i.e. 1)
15091← preg_match(    '/\p{L}/',        chr(192))
15100← preg_match(    '/\p{L}+/',       chr(192)) (expected integer 1 i.e. 1)
15111← preg_match(    '/\pL/',          chr(192))
15120← preg_match(    '/\pL+/',         chr(192)) (expected integer 1 i.e. 1)
15130← preg_match(    '/\pL{1,}/',      chr(192)) (expected integer 1 i.e. 1)
15140← preg_match(   '/[\pL]/',         chr(192))
15150← preg_match(   '/[\pL]+/',        chr(192))
15161← preg_match(    '/\pL/',          chr(65))
15171← preg_match(    '/\pL+/',         chr(65))
15181← preg_match(   '/[\pL]/',         chr(65))
15191← preg_match(   '/[\pL]+/',        chr(65))
posix patterns
white space
15250← preg_match(   '/^ +$/', "\t\n\x0C\r    ")
15261← preg_match(   '/^ +$/',               "    ")
15270← preg_match(   '/^ +$/',            "\n    ")
15280← preg_match(   '/^ +$/',            "\r    ")
15290← preg_match(   '/^ +$/',            "\t    ")
15300← preg_match(   '/^ +$/',           "\x0C   ")
15311← preg_match( '/^[^ ]+$/', "\t\n\x0C\r")
15320← preg_match( '/^[^ ]+$/', "\t\n\x0C\r ")
15330← preg_match(    '/^\s+$/', "\t\n\x0C\r    \xA0") (expected integer 1 i.e. 1)
15340← preg_match(   '/^\s+$/', "\t\n\x0C\r    \xA0") (expected integer 1 i.e. 1)
15350← preg_match(  "/^\s+$/","\t\n\x0C\r    \xA0") (expected integer 1 i.e. 1)
15360← preg_match( '/^\\s+$/', "\t\n\x0C\r    \xA0") (expected integer 1 i.e. 1)
15370← preg_match("/^\\s+$/","\t\n\x0C\r    \xA0") (expected integer 1 i.e. 1)
backreferences \\1 $1
postpattern options
preg_replace()
SQL
MySQL
1591'5.0.92'←mysql_get_client_info()
1592'5.5.54'←mysql_get_server_info()
1593'Localhost via UNIX socket'←mysql_get_host_info()
159410← mysql_get_proto_info()
1595NULL<~DROP TABLE IF EXISTS TestTable MYSQL QUERY ERROR No database selected
1596NULL<~CREATE TABLE TestTable (c CHAR(9) BINARY DEFAULT 'abcde' NOT NULL, i INT ZEROFILL UNSIGNED DEFAULT 99) MYSQL QUERY ERROR No database selected
1597NULL<~INSERT INTO TestTable SET c='zz', i=8888 MYSQL QUERY ERROR No database selected
1598FALSE← mysql_info()
1599NULL<~UPDATE TestTable SET c='yy' WHERE i=8888 MYSQL QUERY ERROR No database selected
1600FALSE← mysql_info() (expected string "Rows matched: 1  Changed: 1  Warnings: 0" i.e. 'Rows matched: 1  Changed: 1  Warnings: 0')
1601'information_schema'←semicolon($list_dbs = mysql_list_dbs(), mysql_db_name($list_dbs,0))
1602FALSE←semicolon($list_dbs = mysql_list_dbs(), mysql_db_name($list_dbs,1))
1603FALSE←semicolon($list_dbs = mysql_list_dbs(), mysql_db_name($list_dbs,2))
1604FALSE←mysql_query("SELECT * FROM TestTable")
1605
'Id''User''Host''db''Command''Time''State''Info'
'251848''userUTVisiBone''localhost'NULL'Processlist''0'NULLNULL
←mysql_list_processes()
1606FALSE←mysql_list_fields('dbUnitTestVisiBone', 'TestTable')
1607FALSE←mysql_query('SHOW COLUMNS FROM TestTable')
1608FALSE←mysql_list_tables('dbUnitTestVisiBone')
1609FALSE←mysql_query('SHOW TABLES FROM dbUnitTestVisiBone')
1610
'Database'
'information_schema'
←mysql_list_dbs()
1611
'Database'
'information_schema'
←mysql_query('SHOW DATABASES')
1612'Uptime: 9707777  Threads: 1  Questions: 15872189  Slow queries: 233  Opens: 590  Flush tables: 1  Open tables: 583  Queries per second avg: 1.634'←mysql_stat($db)
1613'information_schema'← semicolon(mysql_select_db('information_schema'), mysql_result(mysql_query('SELECT DATABASE()'),0))
1614'information_schema'← semicolon(mysql_select_db('information_schema'), mysql_result(mysql_query('SELECT SCHEMA()'),0))
1615FALSE←mysql_select_db('dbUnitTestVisiBone')
1616'latin1'← mysql_client_encoding()
1617ERROR← mysql_result(mysql_query('SELECT @@CHARACTER_SET_CLIENT'))
1618'latin1'← mysql_result(mysql_query('SELECT @@CHARACTER_SET_CLIENT'),0)
mysql fields
1619NULL<~DROP TABLE IF EXISTS TestTable MYSQL QUERY ERROR Access denied for user 'userUTVisiBone'@'localhost' to database 'information_schema'
1620NULL<~CREATE TABLE TestTable (c CHAR(9) BINARY DEFAULT 'abcde' NOT NULL, i INT ZEROFILL UNSIGNED DEFAULT 99) MYSQL QUERY ERROR Access denied for user 'userUTVisiBone'@'localhost' to database 'information_schema'
1621NULL<~INSERT INTO TestTable SET c='zz', i=8888 MYSQL QUERY ERROR Access denied for user 'userUTVisiBone'@'localhost' to database 'information_schema'
1622
MYSQL QUERY ERROR Unknown table 'TestTable' in information_schema
<–SHOW CREATE TABLE TestTable
1623FALSE←mysql_query("SHOW CREATE TABLE TestTable")
1624FALSE←$q = mysql_query("SELECT * from TestTable")
1625NULL← semicolon($q = mysql_query("SELECT * from TestTable"), get_resource_type($q)) (expected string "mysql result" i.e. 'mysql result')
1626NULL← mysql_num_fields($q) (expected integer 2 i.e. 2)
1627NULL← mysql_num_rows($q) (expected integer 1 i.e. 1)
1628-1← mysql_affected_rows() (expected integer 1 i.e. 1)
1629NULL←$o = mysql_fetch_field($q, 0)
16300← ($o=mysql_fetch_field($q, 0)) ? $o->name         : 0 (expected string "c" i.e. 'c')
16310← ($o=mysql_fetch_field($q, 0)) ? $o->table        : 0 (expected string "TestTable" i.e. 'TestTable')
16320← ($o=mysql_fetch_field($q, 0)) ? $o->def          : 0 (expected string "" i.e. '')
16330← ($o=mysql_fetch_field($q, 0)) ? $o->max_length   : 0 (expected integer 2 i.e. 2)
16340← ($o=mysql_fetch_field($q, 0)) ? $o->not_null     : 0 (expected integer 1 i.e. 1)
16350← ($o=mysql_fetch_field($q, 0)) ? $o->zerofill     : 0
16360← ($o=mysql_fetch_field($q, 0)) ? $o->unsigned     : 0
16370← ($o=mysql_fetch_field($q, 1)) ? $o->name         : 0 (expected string "i" i.e. 'i')
16380← ($o=mysql_fetch_field($q, 1)) ? $o->def          : 0 (expected string "" i.e. '')
16390← ($o=mysql_fetch_field($q, 1)) ? $o->max_length   : 0 (expected integer 10 i.e. 10)
16400← ($o=mysql_fetch_field($q, 1)) ? $o->not_null     : 0
16410← ($o=mysql_fetch_field($q, 1)) ? $o->zerofill     : 0 (expected integer 1 i.e. 1)
16420← ($o=mysql_fetch_field($q, 1)) ? $o->unsigned     : 0 (expected integer 1 i.e. 1)
1643NULL← mysql_field_name($q, 0) (expected string "c" i.e. 'c')
1644NULL← mysql_fieldname($q, 0) (expected string "c" i.e. 'c')
1645NULL← mysql_field_type($q, 0) (expected string "string" i.e. 'string')
1646NULL← mysql_fieldtype($q, 0) (expected string "string" i.e. 'string')
1647NULL← mysql_field_table($q, 0) (expected string "TestTable" i.e. 'TestTable')
1648NULL← mysql_fieldtable($q, 0) (expected string "TestTable" i.e. 'TestTable')
1649NULL← mysql_field_len($q, 0) (expected integer 9 i.e. 9)
1650NULL← mysql_fieldlen($q, 0) (expected integer 9 i.e. 9)
1651NULL← mysql_field_flags($q, 0) (expected string "not_null binary" i.e. 'not_null binary')
1652NULL← mysql_field_name($q, 1) (expected string "i" i.e. 'i')
1653NULL← mysql_field_type($q, 1) (expected string "int" i.e. 'int')
1654NULL← mysql_field_len($q, 1) (expected integer 10 i.e. 10)
1655NULL← mysql_field_flags($q, 1) (expected string "unsigned zerofill" i.e. 'unsigned zerofill')
16560← preg_match("/not_null/", mysql_field_flags($q, 0)) (expected integer 1 i.e. 1)
16570← preg_match("/not_null/", mysql_field_flags($q, 1))
16580← preg_match("/\bnot_null\b/", mysql_field_flags($q, 0)) (expected integer 1 i.e. 1)
16590← preg_match("/\bnot_null\b/", mysql_field_flags($q, 1))
16600← preg_match("/\bzerofill\b/", mysql_field_flags($q, 0))
16610← preg_match("/\bzerofill\b/", mysql_field_flags($q, 1)) (expected integer 1 i.e. 1)
16620← preg_match("/\bunsigned\b/", mysql_field_flags($q, 0))
16630← preg_match("/\bunsigned\b/", mysql_field_flags($q, 1)) (expected integer 1 i.e. 1)
1664'Access denied for user 'userUTVisiBone'@'localhost' to database 'information_schema''← semicolon(mysql_query('INSERT INTO TestTable (i) VALUES (9)'), mysql_error()) (expected string '')
1665FALSE← semicolon(mysql_query('INSERT INTO TestTable (i) VALUES (9)'), mysql_info())
1666-1← mysql_affected_rows() (expected integer 1 i.e. 1)
1667FALSE← semicolon(mysql_query('INSERT INTO TestTable (i) VALUES (1),(2),(3)'), mysql_info()) (expected string 'Records: 3  Duplicates: 0  Warnings: 0')
1668-1← mysql_affected_rows() (expected integer 3 i.e. 3)
1669FALSE← semicolon(mysql_query('SELECT * FROM TestTable WHERE i!=6'), mysql_info())
1670-1← mysql_affected_rows() (expected integer 6 i.e. 6)
1671NULL← semicolon($r=mysql_query('SELECT * FROM TestTable WHERE i!=6'), mysql_num_rows($r)) (expected integer 6 i.e. 6)
1672-1← mysql_affected_rows() (expected integer 6 i.e. 6)
1673FALSE← semicolon(mysql_query('DELETE FROM TestTable WHERE i=9'), mysql_info())
1674-1← mysql_affected_rows() (expected integer 2 i.e. 2)
1675NULL<~DROP TABLE IF EXISTS TestTable MYSQL QUERY ERROR Access denied for user 'userUTVisiBone'@'localhost' to database 'information_schema'
SHOW VARIABLES
INFORMATION_SCHEMA - SCHEMATA
INFORMATION_SCHEMA - TABLES
INFORMATION_SCHEMA - COLUMNS
INFORMATION_SCHEMA - SESSION_STATUS
INFORMATION_SCHEMA - SESSION_VARIABLES
INFORMATION_SCHEMA - STATISTICS
mysqli
16851045← mysqli_connect_errno() (expected integer 0 i.e. 0)
1686'Access denied for user 'aidemem'@'localhost' (using password: YES)'← mysqli_connect_error() (expected string '')
1687NULL← $mysqli->errno (expected integer 0 i.e. 0)
1688NULL← $mysqli->error (expected string "" i.e. '')
1689'object'← gettype($GLOBALS["mysqli"])
1690'mysqli'← get_class($GLOBALS["mysqli"])
1691NULL← $GLOBALS['mysqli']->select_db('AdwordsVisiBone') (expected boolean TRUE i.e. TRUE)
Etc.
Math Simple
16925← abs(-5)
16935← abs('-5')
16945.6← abs(-5.6)
1695'double'← gettype(abs(-5.6))
1696'double'← gettype(abs(-5.0))
1697'integer'← gettype(abs(-5  ))
1698'integer'← gettype(abs('-5'  ))
1699'double'← gettype(abs('-5.6'))
17004.5← semicolon($x= 3.5,  $xx = $x++, $x              )
17013.5← semicolon($x= 3.5,  $xx = $x++, $xx)
17024.5← semicolon($x= 3.5,  $xx = ++$x, $x              )
17034.5← semicolon($x= 3.5,  $xx = ++$x, $xx)
1704-10.5← semicolon($x=-9.5,  $xx = $x--, $x              )
1705-9.5← semicolon($x=-9.5,  $xx = $x--, $xx)
1706-10.5← semicolon($x=-9.5,  $xx = --$x, $x              )
1707-10.5← semicolon($x=-9.5,  $xx = --$x, $xx)
17082← ceil(1.1)
1709-1← ceil(-1.9)
17102← floor(2.9)
17112← floor(2)
1712-3← floor(-2.1)
17130← floor(-2.9)+3
17142.5← fmod(12.5, 10.0)
1715is_finite(1)
1716!is_finite(9e9999)
1717!is_infinite(1)
1718is_infinite(9e9999)
17199← max(7,8,9)
1720'z'← max('x','y','z')
1721'y'← max('x','y','Z')
17221← min(3,2,1)
172311← min(array(33,22,11))
1724
Array
(
[0] => 3
[1] => 2
[2] => 1
)
← min(array(33,22,11), array(3,2,1))
1725
Array
(
[0] => 3
[1] => 2
[2] => 1
)
← min(array(3,2,1), array(33,22,11))
17260← min(99, array(33,22,11), 0, array(3,2,1), 98)
1727
Array
(
[0] => 33
[1] => 22
[2] => 11
)
← max(99, array(33,22,11), 0, array(3,2,1), 98)
1728
Array
(
[0] => 33
[1] => 22
[2] => 99
)
← max(11, array(33,22,99), 3, array(0,2,98), 1)
17291← min(11, array(33,22,99), 3, array(0,2,98), 1)
1730FALSE← min(array())
1731NULL← min()
1732FALSE← max(array())
1733NULL← max()
1734
Array
(
[0] => 9
[1] => 8
)
← min(array(7,6,5,4),array(9,8),array(-99,-98,-97,-96),array(3,2,1))
17354← min(array(9,8),6,5,4,array(3,2,1))
17367← min(7,8.2,9)
17377.2← min(7.2,8,9)
1738'integer'← gettype(min(7  ,8.2,9))
1739'double'← gettype(min(7.2,8  ,9))
1740'integer'← gettype(max(7  ,8.2,9  ))
1741'double'← gettype(max(7.2,8  ,9.2))
1742'#'← min(7,8.0,9,'6','#')
1743'a'← min('c','b','a')
17443← round(2.6)
1745-3← round(-2.6)
1746-2.67← round(-2.666, 2)
1747-2863311531← ~(integer)0xAAAAAAAA (expected integer 0x55555555 i.e. 1431655765)
1748-1431655766← ~0x55555555 (expected integer (integer)0xAAAAAAAA i.e. 2863311530)
1749-22906492246← ~0x555555555 (expected integer (integer)0xAAAAAAAA i.e. 2863311530)
1750-5864062014806← ~0x55555555555 (expected integer (integer)0xAAAAAAAA i.e. 2863311530)
1751-6148914691236517206← ~0x5555555555555555 (expected integer (integer)0xAAAAABFF i.e. 2863311871)
1752-43691← ~    0xAAAA (expected integer (integer)0xFFFF5555 i.e. 4294923605)
17534294923605← 0xFFFF5555 (expected double 4294923605.0 i.e. 4294923605)
17544294923605← 0xFFFF5555
1755255← 0xFF
175664← 0100
1757'666666'← bcmul('111111', '6')
1758'6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666'← bcmul(str_repeat('1', 100), '6')
1759'1.4142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727'← bcsqrt(2,100)
176012321← 111 * 111
176189← 789 % 100
17621← 10.0 % 3.2
1763ERROR← 789 mod 100
Random
Date/Time
References
Control
Toolbox
Empty
Getting Info
Magic Constants
Apache
Headers
1988'Apache'←apache_get_version()
1989
Array
(
    [Host] => www.visibone.com
    [Accept-Encoding] => x-gzip, gzip, deflate
    [User-Agent] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
)
←getallheaders()
19900← semicolon($a=getallheaders(), preg_match('/Mozilla/', $a['User-Agent'])) (expected integer 1 i.e. 1)
Variables
Functions