3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i=10; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=10.3; if(is_integer($i)) echo("$i is an integer"); if(is_string($i)) echo("$i is an string"); if(is_double($i)) echo("$i is a double"); ?>
based on EKng5
Output for 4.3.0 - 7.2.0
10 is integer10.3 is a double