3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(7, NAN, 3,); sort($arr); print_r($arr); var_dump(7 < 3); var_dump(NAN < 3);
based on lIgIk
Output for 7.1.10 - 7.2.0
Array ( [0] => NAN [1] => 3 [2] => 7 ) bool(false) bool(false)
Output for 7.0.0 - 7.1.7
Array ( [0] => 7 [1] => NAN [2] => 3 ) bool(false) bool(true)
Output for 5.4.11 - 5.6.28
Array ( [0] => 3 [1] => NAN [2] => 7 ) bool(false) bool(false)
Output for 5.3.21 - 5.3.29
Array ( [0] => 3 [1] => NAN [2] => 7 ) bool(false) bool(true)