3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = NULL; $b = 1; $c = 2; echo $a ?? $b; // 1 echo $c ?? $b; // 2 echo $a ?? $b ?? $c; // 1 echo $a ?? $x ?? $c; // 2
based on 7NmMA
Output for 7.0.0 - 7.2.0
1212
Output for 5.3.19 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/SP2f5 on line 7
Process exited with code 255.