3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(max(NAN, 0), PHP_INT_MAX);
based on eImnA
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
float(NAN) int(9223372036854775807)
Output for 4.3.6 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/uSMPP on line 3 float(NAN) string(11) "PHP_INT_MAX"
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant NAN - assumed 'NAN' in /in/uSMPP on line 3 Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/uSMPP on line 3 string(3) "NAN" string(11) "PHP_INT_MAX"