3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(7, NaN, 3,); sort($arr); var_dump($arr);
based on PP2iK
Output for 7.2.0
Warning: Use of undefined constant NaN - assumed 'NaN' (this will throw an Error in a future version of PHP) in /in/C927W on line 3 array(3) { [0]=> string(3) "NaN" [1]=> int(3) [2]=> int(7) }
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant NaN - assumed 'NaN' in /in/C927W on line 3 array(3) { [0]=> string(3) "NaN" [1]=> int(3) [2]=> int(7) }