3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $baz = 'x'; $bar = null; $foo = $bar ?? $baz; var_dump($baz); var_dump($ccc);
based on e8EGV
Output for 7.0.0 - 7.2.0
string(1) "x" Notice: Undefined variable: ccc in /in/TLIDj on line 6 NULL
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/TLIDj on line 4
Process exited with code 255.