3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "r3"; var_dump(is_numeric($var)); var_dump($var+0); if ( strval($var) != strval(intval($var)) ) { echo "Your variable is not an integer"; } ?>
Output for 7.1.0 - 7.2.0
bool(false) Warning: A non-numeric value encountered in /in/I91bt on line 5 int(0) Your variable is not an integer
Output for 4.3.0 - 7.0.20
bool(false) int(0) Your variable is not an integer