3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /*class A { static $a=7; var $b=9; }*/ class A; A::__set_state(array( 'b' => 9, )); function f($obj) { var_export($obj); echo $obj::$a; } $a; f(new A);
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ';', expecting '{' in /in/v8lsL on line 8
Process exited with code 255.