3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (true == 1) { echo 'true'; } else { echo 'false'; } switch ('something') { case true: echo 'true'; break; case false: echo 'false'; break; default: echo 'none'; break; }
based on nXgpV
Output for 4.3.0 - 7.2.0
truetrue