3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static $a_static1 = "1"; public static $a_static2 = "2"; } var_dump(Foo::$a_static1 ?? Foo::$a_static2);
based on kdR1g
Output for 7.0.0 - 7.2.0
string(1) "1"
Output for 5.3.19 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/rlFLZ on line 8
Process exited with code 255.