3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = array('0', "0", '1', "1", 'null'); foreach($t as $i) { var_dump((int)$i); }
Output for 5.6.30
int(0) int(0) int(1) int(1) int(0)