3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = 1; $r = (1 == $v) ? 'Yes' : 'No'; // $r is set to 'Yes' $r = (3 == $v) ? 'Yes' : 'No'; // $r is set to 'No' echo (1 == $v) ? 'Yes' : 'No'; // 'Yes' will be printed ?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Yes
Output for hhvm-3.15.4

Process exited with code 137.