3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = null; $bar = 'something'; $what = $foo ?? $bar ?? 'DEFAULT'; var_dump($what);
based on uj7sB
Output for 7.0.0 - 7.2.0
string(9) "something"
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/IBj0p on line 6
Process exited with code 255.