3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t1 = 12; $t2 = '12'; $t3 = 'xcz12'; var_dump(is_int((int)$t1)); var_dump(is_int((int)$t2)); var_dump(is_int((int)$t3)); var_dump(is_numeric($t1)); var_dump(is_numeric($t2)); var_dump(is_numeric($t3));
Output for 4.3.0 - 7.1.0
bool(true) bool(true) bool(true) bool(true) bool(true) bool(false)