3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $vector = "eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)).\"<br><hr>\");%27);";//$_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');
Output for 7.1.0
Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 4 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 7 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27);' not found or invalid function name in /in/7aI9u on line 13 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 16 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 19 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 22 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27);' not found or invalid function name in /in/7aI9u on line 28 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27);' not found or invalid function name in /in/7aI9u on line 34 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 37 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 42 Notice: Only variables should be passed by reference in /in/7aI9u on line 45 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 45 Notice: Only variables should be passed by reference in /in/7aI9u on line 48 Warning: Cannot call assert() with string argument dynamically in /in/7aI9u on line 48 Fatal error: Uncaught ParseError: syntax error, unexpected '%' in /in/7aI9u(51) : assert code:1 Stack trace: #0 /in/7aI9u(51): assert('eval(%27print(v...') #1 {main} Next Error: Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u:51 Stack trace: #0 /in/7aI9u(51): assert('eval(%27print(v...') #1 {main} thrown in /in/7aI9u on line 51 Warning: Cannot call assert() with string argument dynamically in Unknown on line 0
Process exited with code 255.
Output for 5.2.0 - 7.0.14
Parse error: syntax error, unexpected '%' in /in/7aI9u(4) : assert code on line 1 Catchable fatal error: assert(): Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Parse error: syntax error, unexpected '%' in /in/7aI9u(4) : assert code on line 1 Fatal error: assert(): Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected '%' in /in/7aI9u(4) : assert code on line 1 Fatal error: assert(): Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '%' in /in/7aI9u(4) : assert code on line 1 Fatal error: Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '%' in /in/7aI9u(4) : assert code on line 1 Fatal error: Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/7aI9u(4) : assert code on line 1 Fatal error: Failure evaluating code: eval(%27print(var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS))."<br><hr>");%27); in /in/7aI9u on line 4
Process exited with code 255.