3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (NaN == true); echo (NaN === true); echo (NaN == false); echo (NaN == NaN); echo (NaN === NaN);
Output for 4.3.0 - 7.1.0
Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 2 1 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 3 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 4 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 5 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 5 1 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 6 Notice: Use of undefined constant NaN - assumed 'NaN' in /in/7RjEp on line 6 1