3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array( '01' => 'Z', '02' => 'A', '03' => 'B', '04' => 'C', '05' => 'Y' ); echo "Before sorting:\n"; print_r($list); asort($list); echo "\nAfter sorting:\n"; print_r($list);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Before sorting: Array ( [01] => Z [02] => A [03] => B [04] => C [05] => Y ) After sorting: Array ( [02] => A [03] => B [04] => C [05] => Y [01] => Z )
Output for hhvm-3.10.0

Process exited with code 153.