3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = $array2 = array("index.html", "doc/index.html", "doc/test.html"); asort($array1); echo "Standard sorting\n"; print_r($array1); natsort($array2); echo "\nNatural order sorting\n"; print_r($array2);
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Standard sorting Array ( [1] => doc/index.html [2] => doc/test.html [0] => index.html ) Natural order sorting Array ( [1] => doc/index.html [2] => doc/test.html [0] => index.html )
Output for hhvm-3.10.0

Process exited with code 153.