3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static $prop = 24; } $obj = new Foo; $obj->prop = 42;
based on T6guQ
Output for 7.0.0 - 7.2.0
Notice: Accessing static property Foo::$prop as non static in /in/GRgX9 on line 7
Output for 5.3.19 - 5.6.28
Strict Standards: Accessing static property Foo::$prop as non static in /in/GRgX9 on line 7