3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $callable = array($x, $y); call_user_func($callable); $callable();
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: x in /in/6AsHT on line 2 Notice: Undefined variable: y in /in/6AsHT on line 2 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /in/6AsHT on line 3 Fatal error: Uncaught Error: First array member is not a valid class name or object in /in/6AsHT:4 Stack trace: #0 {main} thrown in /in/6AsHT on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: x in /in/6AsHT on line 2 Notice: Undefined variable: y in /in/6AsHT on line 2 Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /in/6AsHT on line 3 Fatal error: First array member is not a valid class name or object in /in/6AsHT on line 4
Process exited with code 255.