3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 50, NAN, 500, 5000, 70000 ); sort($a); var_dump($a);
based on ToV83
Output for 7.1.10 - 7.2.0
array(5) { [0]=> float(NAN) [1]=> int(50) [2]=> int(500) [3]=> int(5000) [4]=> int(70000) }
Output for 7.0.0 - 7.1.7
array(5) { [0]=> int(50) [1]=> float(NAN) [2]=> int(500) [3]=> int(5000) [4]=> int(70000) }
Output for 5.3.22 - 5.6.28
array(5) { [0]=> int(50) [1]=> int(500) [2]=> float(NAN) [3]=> int(5000) [4]=> int(70000) }