3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { static function hello(){ echo "Hello World\n"; } } $x = 'hello'; $y[0] = 'hello'; A::$x(); A::$y[0]();
based on RWVNm
Output for 7.0.0 - 7.2.0
Hello World Fatal error: Uncaught Error: Access to undeclared static property: A::$y in /in/XcTBq:13 Stack trace: #0 {main} thrown in /in/XcTBq on line 13
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Hello World Hello World