3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 2; $b = ''; if ($a != 1) { echo 'true'; } else { echo $a; }
based on AUb87
Output for 4.3.0 - 7.1.10
true