3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "asdf"; $test = true; ?> <?=($test) ? $str : "test"?>
based on gZnL3
Output for 5.4.0 - 7.1.0
asdf
Output for 4.3.0 - 5.3.29
<?=($test) ? $str : "test"?>