3v4l.org

run code in 300+ PHP versions simultaneously
<?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.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.28, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
bool(false) bool(false) bool(false) bool(false)
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
bool(true) bool(false) bool(true) bool(false)