3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = $x[1] ?? 10; list($a, $b) = [1, 2]; function a($x = 10) { echo $x; } a();
based on DWcXU
Output for 7.0.0 - 7.2.0
10
Output for 5.3.19 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/770jj on line 4
Process exited with code 255.