3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "123"; var_dump(is_int($a)); var_dump(intval($a)); $b = "123a"; var_dump(intval($b));
Output for 4.3.0 - 7.1.0
bool(false) int(123) int(123)