3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (float) 'NaN'; var_dump( $a ); var_dump( is_numeric($a) );
based on 7teZ0
Output for 5.6.0 - 5.6.30, hhvm-3.21.3 - 3.22.0, 7.0.13 - 7.3.0beta1
float(0) bool(true)
Output for hhvm-3.18.5, 7.0.0 - 7.0.12
float(NAN) bool(true)