3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=95; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=95; if(is_integer($i)) echo("$i is an integer"); if(is_string($i)) echo("$i is a string"); if(is_double($i)) echo("$i is a double"); ?>
based on DQHnT
Output for 4.3.0 - 7.1.0
95 is integer95 is an integer