3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $z = 'bar'; $f = function ($y) use ($z) { echo $x ?? $y ?? $z; }; $f(null); $f('foo');
based on ov7pV
Output for 7.0.0 - 7.3.0rc4
barfoo
Output for 5.5.0 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/9lf4d on line 5
Process exited with code 255.