3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(NAN < NAN); // true var_dump(NAN > NAN); // true var_dump(INF < INF); // true var_dump(INF > INF); // true
Output for 7.0.0 - 7.1.0
bool(true) bool(true) bool(false) bool(false)
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
bool(false) bool(false) bool(false) bool(false)
Output for 4.3.6 - 5.0.5, 5.1.1 - 5.3.29
bool(true) bool(true) bool(true) bool(true)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2TQiQ on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant NAN - assumed 'NAN' in /in/2TQiQ on line 4 Notice: Use of undefined constant NAN - assumed 'NAN' in /in/2TQiQ on line 4 bool(false) Notice: Use of undefined constant NAN - assumed 'NAN' in /in/2TQiQ on line 5 Notice: Use of undefined constant NAN - assumed 'NAN' in /in/2TQiQ on line 5 bool(false) Notice: Use of undefined constant INF - assumed 'INF' in /in/2TQiQ on line 6 Notice: Use of undefined constant INF - assumed 'INF' in /in/2TQiQ on line 6 bool(false) Notice: Use of undefined constant INF - assumed 'INF' in /in/2TQiQ on line 7 Notice: Use of undefined constant INF - assumed 'INF' in /in/2TQiQ on line 7 bool(false)