3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (int)true; echo '<br>'; echo (int)false; echo '<br>'; echo intval(true); echo '<br>'; echo intval(false); echo '<br>'; echo true + true;
Output for 4.3.0 - 7.1.0
1<br>0<br>1<br>0<br>2