3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ is_numeric('0e1'), is_numeric('1e1'), is_numeric('0x1'), is_numeric('0'), ]; foreach ($a as $i): var_dump($i); endforeach;
Output for 7.0.0 - 7.2.0
bool(true) bool(true) bool(false) bool(true)
Output for 5.4.0 - 5.6.28
bool(true) bool(true) bool(true) bool(true)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/OgCro on line 2
Process exited with code 255.