3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = 5; $null = null; echo $null ?? $value; echo null ?? $value ?? $null; echo null ?? $null ?? value;
based on jSH17
Output for 7.2.0
55 Warning: Use of undefined constant value - assumed 'value' (this will throw an Error in a future version of PHP) in /in/YF085 on line 8 value
Output for 7.0.0 - 7.1.10
55 Notice: Use of undefined constant value - assumed 'value' in /in/YF085 on line 8 value
Output for 5.3.20 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/YF085 on line 6
Process exited with code 255.