3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class X { static $c = 'Y'; public static function go() { static::$c::test(); } } class Y { public static function test() { echo 'Hello World!'; } } X::go();
Output for hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.2.6
Hello World!
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /in/qhv3h on line 6
Process exited with code 255.