3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = null; var_dump([$val ?? 1]);
Output for 7.0.28 - 7.3.0rc3
array(1) { [0]=> int(1) }
Output for 5.6.38
Parse error: syntax error, unexpected '?' in /in/q3FsC on line 5
Process exited with code 255.