3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((bool) "0"); var_dump((string)(bool) "0"); var_dump((int)(string)(bool) "0"); var_dump((string)(int)(string)(bool) "0");
Output for 4.3.0 - 7.1.0
bool(false) string(0) "" int(0) string(1) "0"