3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static $a = "Hello"; public $b = "World"; } echo A::$a; echo A::$b;
based on 9gsQE
Output for 7.0.0 - 7.2.0
Hello Fatal error: Uncaught Error: Access to undeclared static property: A::$b in /in/Sfg1R:9 Stack trace: #0 {main} thrown in /in/Sfg1R on line 9
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Hello Fatal error: Access to undeclared static property: A::$b in /in/Sfg1R on line 9
Process exited with code 255.