3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function m() { print 'Success' . PHP_EOL; } } $c = '\A'; $m = 'm'; $c::$m(); $f = $c . '::' . $m; $f();
based on 3qEH0
Output for 7.0.0 - 7.2.0
Success Success
Output for 5.3.20 - 5.6.28
Success Fatal error: Call to undefined function \A::m() in /in/3cIfv on line 11
Process exited with code 255.