3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class c{ } var_dump(isset(c::$foo) ? 'set' : 'not'); var_dump(c::$foo);
based on WfqIg
Output for 7.0.0 - 7.2.0
string(3) "not" Fatal error: Uncaught Error: Access to undeclared static property: c::$foo in /in/6pchu:7 Stack trace: #0 {main} thrown in /in/6pchu on line 7
Process exited with code 255.
Output for 5.3.19 - 5.6.28
string(3) "not" Fatal error: Access to undeclared static property: c::$foo in /in/6pchu on line 7
Process exited with code 255.