3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test1 = null; $test2 = 'ok'; $test3 = $test1 ?? $test2; echo $test3;
based on j191a
Output for 7.0.0 - 7.2.0
ok
Output for 5.3.19 - 5.6.21
Parse error: syntax error, unexpected '?' in /in/71Rev on line 6
Process exited with code 255.