3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class bla { static public $p = "real property"; } $foo = array(); $foo['bar'] = new bla; $baz = 'p'; echo $foo['bar']::$baz;
based on 3Rb9B
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Access to undeclared static property: bla::$baz in /in/C9Uqm:10 Stack trace: #0 {main} thrown in /in/C9Uqm on line 10
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Access to undeclared static property: bla::$baz in /in/C9Uqm on line 10
Process exited with code 255.