3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class X { public static function Y(){ echo 'woot'; } } call_user_func_array('X::Y', array());
Output for 5.2.2 - 5.6.30, hhvm-3.10.1 - 3.21.0, 7.0.0 - 7.3.0beta1
woot
Output for 5.1.0 - 5.2.1
Warning: call_user_func_array(): Unable to call X::Y() in /in/s531c on line 9
Output for 5.0.0 - 5.0.5
Warning: call_user_func_array(): First argument is expected to be a valid callback, 'X::Y' was given in /in/s531c on line 9
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/s531c 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 T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/s531c on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/s531c on line 4
Process exited with code 255.