3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $assoc = array(15,0,19,1,42,3); function test_context($in_array){ sort($in_array); return(0); } test_context($assoc); print_r($assoc); ?>
Output for 4.3.0 - 7.1.0
Array ( [0] => 15 [1] => 0 [2] => 19 [3] => 1 [4] => 42 [5] => 3 )