3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $vector = 'phpinfo()';//$_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 VkGnI
Output for 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 4 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 7 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 13 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 16 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 19 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 22 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 28 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 34 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 37 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 42 Notice: Only variables should be passed by reference in /in/UQQKD on line 45 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 45 Notice: Only variables should be passed by reference in /in/UQQKD on line 48 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 48 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/UQQKD on line 51 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(51) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 51 Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/UQQKD on line 54 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(54) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 54 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 57 Notice: Only variables should be passed by reference in /in/UQQKD on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 63 Notice: Only variables should be passed by reference in /in/UQQKD on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 66 Notice: Only variables should be passed by reference in /in/UQQKD on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD 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/UQQKD on line 4 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 7 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 13 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 16 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 19 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 22 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 28 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 34 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 37 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 42 Notice: Only variables should be passed by reference in /in/UQQKD on line 45 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 45 Notice: Only variables should be passed by reference in /in/UQQKD on line 48 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 48 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(51) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 51 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(54) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 54 Warning: Cannot call assert() with string argument dynamically in /in/UQQKD on line 57 Notice: Only variables should be passed by reference in /in/UQQKD on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 63 Notice: Only variables should be passed by reference in /in/UQQKD on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 66 Notice: Only variables should be passed by reference in /in/UQQKD on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD 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: phpinfo() has been disabled for security reasons in /in/UQQKD(4) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 4 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(7) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 7 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(10) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 10 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 13 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(16) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 16 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(19) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 19 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(22) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 22 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(25) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 25 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 28 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(31) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 31 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 34 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(37) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 37 call_user_func Notice: Only variables should be passed by reference in /in/UQQKD on line 45 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(45) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 45 Notice: Only variables should be passed by reference in /in/UQQKD on line 48 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(48) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 48 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(51) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 51 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(54) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 54 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(57) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 57 Notice: Only variables should be passed by reference in /in/UQQKD on line 63 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 63 Notice: Only variables should be passed by reference in /in/UQQKD on line 66 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 66 Notice: Only variables should be passed by reference in /in/UQQKD on line 69 Warning: call_user_func() expects parameter 1 to be a valid callback, function 'phpinfo()' not found or invalid function name in /in/UQQKD on line 69 register_shutdown_function Warning: phpinfo() has been disabled for security reasons in Unknown on line 0 Warning: assert(): Assertion "phpinfo()" failed in Unknown on line 0
Output for 5.4.0 - 5.6.28
Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(4) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 4 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(7) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 7 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(10) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 10 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(13) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 13 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(16) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 16 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(19) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 19 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(22) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 22 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(25) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 25 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(28) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 28 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(31) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 31 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(34) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 34 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(37) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 37 call_user_func Strict Standards: Only variables should be passed by reference in /in/UQQKD on line 45 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(45) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 45 Strict Standards: Only variables should be passed by reference in /in/UQQKD on line 48 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(48) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 48 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(51) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 51 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(54) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 54 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(57) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 57 Strict Standards: Only variables should be passed by reference in /in/UQQKD on line 63 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(63) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 63 Strict Standards: Only variables should be passed by reference in /in/UQQKD on line 66 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(66) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 66 Strict Standards: Only variables should be passed by reference in /in/UQQKD on line 69 Warning: phpinfo() has been disabled for security reasons in /in/UQQKD(69) : assert code on line 1 Warning: assert(): Assertion "phpinfo()" failed in /in/UQQKD on line 69 register_shutdown_function Warning: phpinfo() has been disabled for security reasons in Unknown(0) : assert code on line 1 Warning: Unknown: Assertion "phpinfo()" failed in Unknown on line 0