3v4l.org

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