3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((int)NAN); print(PHP_FLOAT_MAX);
based on gKmZo
Output for 7.2.0
int(0) 1.7976931348623E+308
Output for 7.0.0 - 7.1.10
int(0) Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/Kss2f on line 4 PHP_FLOAT_MAX
Output for 5.3.18 - 5.6.28
int(-9223372036854775808) Notice: Use of undefined constant PHP_FLOAT_MAX - assumed 'PHP_FLOAT_MAX' in /in/Kss2f on line 4 PHP_FLOAT_MAX