3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[1] = 'test1'; $a[2] = 'test2'; $a[5] = 'test5'; $a[4] = 'test4'; $a[3] = 'test3'; sort($a); print_r($a);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => test1 [1] => test2 [2] => test3 [3] => test4 [4] => test5 )