3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_numeric(null)); var_dump(is_numeric(INF)); var_dump(is_numeric(NAN)); var_dump(is_numeric(-INF)); var_dump(is_numeric(123)); var_dump(is_numeric('qweffwqe'));
Output for 4.3.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false) bool(true) bool(true) bool(true) bool(true) bool(false)
Output for 4.3.0 - 4.3.5
bool(false) Notice: Use of undefined constant INF - assumed 'INF' in /in/S4PEM on line 4 bool(false) Notice: Use of undefined constant NAN - assumed 'NAN' in /in/S4PEM on line 5 bool(false) Notice: Use of undefined constant INF - assumed 'INF' in /in/S4PEM on line 6 bool(true) bool(true) bool(false)