3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(4, 6, 3, 2.9, 3.1); echo var_dump(sort($a)); print_r($a);
based on 8gX4p
Output for 4.3.0 - 7.2.0
bool(true) Array ( [0] => 2.9 [1] => 3 [2] => 3.1 [3] => 4 [4] => 6 )