3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = 1; $bar = "A"; echo "foo"; $b = is_numeric($foo); $c = is_int($foo); var_dump($b); var_dump($c); echo "bar"; $b = is_numeric($bar); $c = is_int($bar); var_dump($b); var_dump($c);
based on R5bS0
Output for 4.3.0 - 7.2.0
foobool(true) bool(true) barbool(false) bool(false)