3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo{ public static function Bar(){ echo 'Bar'; } } function sillyboy(){ echo 'sillyboy'; } function inc(&$p1){ $p1++; } $f = 'Foo::Bar'; $f2 = 'sillyboy'; if (is_callable($f)){ call_user_func($f); } if (is_callable($f2)){ call_user_func($f2); } $num = 3; call_user_func('inc', &$num); echo $num;
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/1Hica on line 31
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/TSYeq on line 31 Barsillyboy4
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/1Hica on line 31 Barsillyboy4