3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'key-0' => 40, 'key-1' => 50, 'key-2' => 10, 'key-3' => 20, 'key-4' => 20, 'key-5' => 30, 'key-6' => 10, 'key-7' => 20, 'key-8' => 40, 'key-9' => 40, ); array_multisort($array, range(1, count($array))); var_export($array);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.140.0110.01117.23
8.4.130.0110.01118.93
8.4.120.0060.00524.09
8.4.110.0110.01022.30
8.4.100.0080.00418.53
8.4.90.0040.00518.95
8.4.80.0070.00418.61
8.4.70.0110.00818.03
8.4.60.0080.00818.95
8.4.50.0150.00518.40
8.4.40.0070.01417.46
8.4.30.0080.01118.59
8.4.20.0030.00718.11
8.4.10.0120.00319.51
8.3.270.0120.00816.39
8.3.260.0120.00816.32
8.3.250.0080.01018.88
8.3.240.0110.00717.09
8.3.230.0110.00916.63
8.3.220.0110.00718.83
8.3.210.0060.00216.50
8.3.200.0080.01116.74
8.3.190.0140.00417.11
8.3.180.0110.00316.98
8.3.170.0130.00618.78
8.3.160.0130.00617.11
8.3.150.0090.00917.21
8.3.140.0030.00516.71
8.3.130.0030.00716.78
8.3.120.0090.00919.07
8.3.110.0060.00620.94
8.3.100.0000.01024.06
8.3.90.0120.00326.77
8.3.80.0060.00317.97
8.3.70.0060.00916.63
8.3.60.0090.00616.64
8.3.50.0140.00318.23
8.3.40.0100.00321.79
8.3.30.0060.01020.34
8.3.20.0110.01121.77
8.3.10.0070.01321.78
8.3.00.0140.00718.79
8.2.290.0120.00720.43
8.2.280.0110.00818.23
8.2.270.0040.00418.86
8.2.260.0070.00316.56
8.2.250.0070.01018.03
8.2.240.0030.00618.63
8.2.230.0070.01522.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0030.00618.54
8.2.190.0070.01416.58
8.2.180.0070.01016.75
8.2.170.0040.01118.82
8.2.160.0070.00722.96
8.2.150.0100.01018.97
8.2.140.0100.01020.35
8.2.130.0090.00920.35
8.2.120.0100.01019.13
8.2.110.0120.00619.32
8.2.100.0070.01118.89
8.2.90.0100.00718.83
8.2.80.0070.01319.27
8.2.70.0090.00618.59
8.2.60.0180.00418.82
8.2.50.0200.00019.01
8.2.40.0100.01018.83
8.2.30.0090.01218.57
8.2.20.0070.01018.68
8.2.10.0100.01018.89
8.2.00.0130.01018.65
8.1.330.0110.01021.90
8.1.320.0100.00615.93
8.1.310.0000.00818.24
8.1.300.0030.00617.93
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0100.01022.17
8.1.260.0040.01221.98
8.1.250.0110.00422.17
8.1.240.0150.00018.57
8.1.230.0040.01218.45
8.1.220.0120.00318.88
8.1.210.0120.00318.45
8.1.200.0060.00918.81
8.1.190.0090.00618.54
8.1.180.0070.00718.43
8.1.170.0000.01718.69
8.1.160.0140.00318.48
8.1.150.0110.00418.85
8.1.140.0150.00318.62
8.1.130.0070.01018.90
8.1.120.0060.01318.43
8.1.110.0160.00318.55
8.1.100.0080.00818.67
8.1.90.0110.00720.33
8.1.80.0110.00321.47
8.1.70.0120.00320.33
8.1.60.0040.01220.46
8.1.50.0060.01018.40
8.1.40.0140.00418.63
8.1.30.0120.00618.73
8.1.20.0070.00720.00
8.1.10.0170.00018.49
8.1.00.0000.01918.40

preferences:
30.64 ms | 403 KiB | 5 Q