3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'str'; $str !== 'str' ?: print_r('here');
Output for 5.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
here
Output for 5.2.14 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/2Td3M on line 5
Process exited with code 255.