3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $things = [NAN, is_nan(NAN), is_float(NAN), is_int(NAN), var_dump(NAN)]; $len = count($things); for ($i = 0; $i < $len; $i++) { print_r($things[$i] + "\n"); }
based on Ua781
Output for 7.1.0 - 7.2.0
float(NAN) Warning: A non-numeric value encountered in /in/hHlr1 on line 6 NAN Warning: A non-numeric value encountered in /in/hHlr1 on line 6 1 Warning: A non-numeric value encountered in /in/hHlr1 on line 6 1 Warning: A non-numeric value encountered in /in/hHlr1 on line 6 0 Warning: A non-numeric value encountered in /in/hHlr1 on line 6 0
Output for 5.4.11 - 7.0.20
float(NAN) NAN1100
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/hHlr1 on line 3
Process exited with code 255.