3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = true ? '1' : false ? '2' : '3'; echo $var;
Output for 4.3.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.10
2