3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user_id = "2"; $user_id = "0123"; if ( (int) $user_id == 0 ) { echo "The user_id $user_id was not an integer.\n"; exit; } echo "---> I think $user_id is an INT\n";
based on ph4eN
Output for 4.3.0 - 7.2.0
---> I think 0123 is an INT