3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mVar = false; $iVar = (int)$mVar; //cast bool to in echo var_dump($mVar); var_dump($iVar);
based on vmkkX
Output for 4.3.0 - 7.1.0
bool(false) int(0)