3v4l.org

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