3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 0; echo "First\n"; ?> <?= !$i ?> <?php $i = 1; echo "Second\n"; ?> <?= (bool) !$i ?>
Output for 5.4.0 - 7.1.0
First 1 Second
Output for 4.3.0 - 5.3.29
First <?= !$i ?> Second <?= (bool) !$i ?>