3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo max(NAN, 0); echo "\n---\n"; echo min(NAN, 0);
Output for 4.3.6 - 7.1.0
NAN --- 0
Output for 4.3.1 - 4.3.5
Notice: Use of undefined constant NAN - assumed 'NAN' in /in/3CNOc on line 3 NAN --- Notice: Use of undefined constant NAN - assumed 'NAN' in /in/3CNOc on line 5 NAN
Output for 4.3.0
Notice: Use of undefined constant NAN - assumed 'NAN' in /in/A5MlD on line 3 NAN --- Notice: Use of undefined constant NAN - assumed 'NAN' in /in/A5MlD on line 5 NAN