3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class bla { static $p = "real property"; } $foo = array(); $foo['bar'] = "bla"; $baz = bla::p; echo $foo['bar']::$baz;
based on IHir9
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Undefined class constant 'p' in /in/qGgdD:9 Stack trace: #0 {main} thrown in /in/qGgdD on line 9
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Undefined class constant 'p' in /in/qGgdD on line 9
Process exited with code 255.