3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace My; class C { public static function f($a = null) { if (isset($a)) { die($a); } $m = __METHOD__; var_dump($m); $m(10); } } C::f();
Output for 7.0.0 - 7.2.0
string(7) "My\C::f"
Process exited with code 10.
Output for 5.3.21 - 5.6.28
string(7) "My\C::f" Fatal error: Call to undefined function My\C::f() in /in/EZpa4 on line 9
Process exited with code 255.