3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo {static function bar() {var_dump(1);}} $a = 'foo::bar'; $a();
based on hevC2
Output for 7.0.0 - 7.2.0
int(1)
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function foo::bar() in /in/tu9uf on line 7
Process exited with code 255.