3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vector = 'system("ls")';//$_GET['vector']; array_map('assert', array($vector)); array_filter(array($vector), 'assert'); array_reduce(array($vector), 'call_user_func', 'assert'); array_diff_uassoc(array($vector => 1, 'assert' => 1), array(), 'call_user_func'); array_diff_ukey(array('assert' => 1), array($vector => 1), 'call_user_func'); array_udiff(array('assert'), array($vector), 'call_user_func'); array_udiff_assoc(array('assert'), array($vector), 'call_user_func'); array_diff_uassoc(array('assert' => 1), array($vector => 1), 'call_user_func'); array_intersect_uassoc(array($vector => 1, 'assert' => 1), array(), 'call_user_func'); array_intersect_ukey(array('assert' => 1), array($vector => 1), 'call_user_func'); array_uintersect(array($vector, 'assert'), array(), 'call_user_func'); array_uintersect_assoc(array('assert'), array($vector), 'call_user_func'); $a = array('assert' => 'assert'); $b = array("print'register_shutdown_function'" => "print'call_user_func'"); array_uintersect_uassoc($a, $b, 'call_user_func', 'register_shutdown_function'); array_walk($c = array($vector => 'assert'), 'call_user_func'); array_walk_recursive($c = array($vector => 'assert'), 'call_user_func'); call_user_func('assert', $vector); call_user_func_array('assert', array($vector)); iterator_apply(new ArrayIterator(array(1)), 'call_user_func', array('assert', $vector)); register_shutdown_function('assert', $vector); usort($c = array($vector, 'assert'), 'call_user_func'); uasort($c = array(1 => $vector, 2 => 'assert'), 'call_user_func'); uksort($c = array($vector => 1, 'assert' => 1), 'call_user_func');
based on HDNBl
Output for 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 4 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 7 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 13 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 16 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 19 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 22 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 28 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 34 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 37 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 42 Notice: Only variables should be passed by reference in /in/BG9ir on line 45 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 45 Notice: Only variables should be passed by reference in /in/BG9ir on line 48 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 48 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/BG9ir on line 51 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 51 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/BG9ir on line 54 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 54 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 57 Notice: Only variables should be passed by reference in /in/BG9ir on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 63 Notice: Only variables should be passed by reference in /in/BG9ir on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 66 Notice: Only variables should be passed by reference in /in/BG9ir on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 69 Warning: Cannot call assert() with string argument dynamically in Unknown on line 0 Warning: Cannot call assert() with string argument dynamically in Unknown on line 0
Output for 7.1.0 - 7.1.10
Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 4 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 7 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 13 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 16 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 19 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 22 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 28 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 34 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 37 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 42 Notice: Only variables should be passed by reference in /in/BG9ir on line 45 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 45 Notice: Only variables should be passed by reference in /in/BG9ir on line 48 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 48 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 51 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 54 Warning: Cannot call assert() with string argument dynamically in /in/BG9ir on line 57 Notice: Only variables should be passed by reference in /in/BG9ir on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 63 Notice: Only variables should be passed by reference in /in/BG9ir on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 66 Notice: Only variables should be passed by reference in /in/BG9ir on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 69 Warning: Cannot call assert() with string argument dynamically in Unknown on line 0 Warning: Cannot call assert() with string argument dynamically in Unknown on line 0
Output for 7.0.0 - 7.0.20
Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 4 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 7 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 13 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 16 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 19 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 22 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 28 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 34 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 37 call_user_func Notice: Only variables should be passed by reference in /in/BG9ir on line 45 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 45 Notice: Only variables should be passed by reference in /in/BG9ir on line 48 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 48 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 51 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 54 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 57 Notice: Only variables should be passed by reference in /in/BG9ir on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 63 Notice: Only variables should be passed by reference in /in/BG9ir on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 66 Notice: Only variables should be passed by reference in /in/BG9ir on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'system("ls")' not found or invalid function name in /in/BG9ir on line 69 register_shutdown_function Warning: assert(): Assertion "system("ls")" failed in Unknown on line 0
Output for 5.3.19 - 5.6.28
Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 4 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 7 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 10 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 13 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 16 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 19 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 22 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 25 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 28 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 31 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 34 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 37 call_user_func Strict Standards: Only variables should be passed by reference in /in/BG9ir on line 45 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 45 Strict Standards: Only variables should be passed by reference in /in/BG9ir on line 48 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 48 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 51 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 54 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 57 Strict Standards: Only variables should be passed by reference in /in/BG9ir on line 63 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 63 Strict Standards: Only variables should be passed by reference in /in/BG9ir on line 66 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 66 Strict Standards: Only variables should be passed by reference in /in/BG9ir on line 69 Warning: assert(): Assertion "system("ls")" failed in /in/BG9ir on line 69 register_shutdown_function Warning: Unknown: Assertion "system("ls")" failed in Unknown on line 0