3v4l.org

run code in 200+ php & hhvm versions
<?php $a = NAN; $b = "1.0"; $c = 1.0; var_dump($a < $b); var_dump($a < $c); var_dump($a > $b); var_dump($a > $c);
Output for 7.1.10 - 7.2.6
bool(false) bool(false) bool(false) bool(false)
Output for 5.4.10 - 7.1.7
bool(true) bool(false) bool(true) bool(false)
Output for 5.3.20 - 5.3.29
bool(true) bool(true) bool(true) bool(true)