3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(7, NAN, 3,); sort($arr); var_dump($arr); $val = (7 < 3); var_dump($val);
based on N5hXC
Output for 7.1.10 - 7.2.0
array(3) { [0]=> float(NAN) [1]=> int(3) [2]=> int(7) } bool(false)
Output for hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.7
array(3) { [0]=> int(7) [1]=> float(NAN) [2]=> int(3) } bool(false)
Output for 5.5.0 - 5.6.30
array(3) { [0]=> int(3) [1]=> float(NAN) [2]=> int(7) } bool(false)