3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bar = 'hello'; echo $bar ?: 'hi';
Output for 5.3.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
hello
Output for 5.2.12 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/SIfDc on line 3
Process exited with code 255.