3v4l.org

run code in 200+ 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 - 7.2.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)