3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_array = array(0 =>array("codes"=>array(7,4,5)), 1 =>array("codes"=>array(4,45,1))); foreach ($your_array as $array){ array_multisort($array['codes']); } var_dump($your_array); //$ar1 = array (1002, 100, 100); //array_multisort ($ar1); //var_dump($ar1);

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.3.60.0130.00718.68
8.3.50.0070.01221.27
8.3.40.0090.01218.60
8.3.30.0080.00520.21
8.3.20.0040.00420.20
8.3.10.0060.00322.05
8.3.00.0080.00022.32
8.2.180.0110.00418.50
8.2.170.0140.00322.96
8.2.160.0100.00722.17
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.82
8.2.110.0030.00619.27
8.2.100.0110.00017.84
8.2.90.0040.00419.21
8.2.80.0050.00318.03
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.15
8.2.30.0000.00719.44
8.2.20.0000.00717.77
8.2.10.0000.00717.63
8.2.00.0000.00717.67
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00620.78
8.1.230.0040.00720.70
8.1.220.0080.00018.77
8.1.210.0110.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.52
8.1.180.0050.00318.10
8.1.170.0080.00018.65
8.1.160.0060.00318.93
8.1.150.0080.00018.54
8.1.140.0060.00317.31
8.1.130.0030.00717.81
8.1.120.0030.00417.47
8.1.110.0080.00017.48
8.1.100.0050.00217.32
8.1.90.0000.00817.43
8.1.80.0020.00517.50
8.1.70.0030.00317.38
8.1.60.0050.00317.60
8.1.50.0040.00417.49
8.1.40.0040.00417.53
8.1.30.0040.00417.51
8.1.20.0030.00517.65
8.1.10.0000.00817.40
8.1.00.0040.00417.48
8.0.300.0060.00319.85
8.0.290.0040.00417.18
8.0.280.0030.00318.48
8.0.270.0070.00017.25
8.0.260.0000.00716.81
8.0.250.0000.00716.95
8.0.240.0040.00716.89
8.0.230.0000.00716.94
8.0.220.0000.00716.75
8.0.210.0000.00716.98
8.0.200.0040.00416.89
8.0.190.0030.00516.82
8.0.180.0050.00316.81
8.0.170.0040.00416.92
8.0.160.0000.00716.85
8.0.150.0070.00016.79
8.0.140.0000.01016.89
8.0.130.0000.00613.24
8.0.120.0040.00416.80
8.0.110.0000.00716.75
8.0.100.0000.00717.00
8.0.90.0030.00516.93
8.0.80.0060.01016.80
8.0.70.0040.00416.84
8.0.60.0040.00416.92
8.0.50.0070.00016.99
8.0.30.0100.01016.99
8.0.20.0080.01317.40
8.0.10.0070.00016.96
8.0.00.0060.01316.64
7.4.330.0000.00415.04
7.4.320.0060.00016.63
7.4.300.0030.00316.50
7.4.290.0000.00716.58
7.4.280.0060.00316.40
7.4.270.0030.00316.54
7.4.260.0000.00613.17
7.4.250.0000.00816.48
7.4.240.0040.00416.61
7.4.230.0030.00316.68
7.4.220.0150.00316.45
7.4.210.0100.00516.51
7.4.200.0000.00716.39
7.4.190.0070.00016.54
7.4.160.0060.01216.46
7.4.150.0190.00017.40
7.4.140.0120.00517.86
7.4.130.0080.01116.56
7.4.120.0140.00616.56
7.4.110.0090.00916.39
7.4.100.0100.00716.56
7.4.90.0060.01216.39
7.4.80.0090.00919.39
7.4.70.0060.01216.51
7.4.60.0180.00016.58
7.4.50.0000.00816.34
7.4.40.0040.01422.77
7.4.30.0070.01016.54
7.4.00.0090.00815.01
7.3.330.0030.00313.16
7.3.320.0000.00613.06
7.3.310.0040.00416.39
7.3.300.0070.00016.31
7.3.290.0060.00916.42
7.3.280.0120.00616.32
7.3.270.0080.00817.40
7.3.260.0140.00516.47
7.3.250.0140.00516.35
7.3.240.0150.00916.36
7.3.230.0160.00016.52
7.3.210.0080.01216.59
7.3.200.0110.00819.39
7.3.190.0110.01116.43
7.3.180.0150.00916.36
7.3.170.0170.00016.29
7.3.160.0110.00616.38
7.3.120.0090.00714.78
7.3.110.0090.00915.10
7.3.100.0080.00614.52
7.3.90.0000.01414.93
7.3.80.0110.00314.93
7.3.70.0150.00414.88
7.3.60.0040.00814.73
7.3.50.0090.00314.95
7.3.40.0110.00414.73
7.3.30.0030.00714.98
7.3.20.0090.00616.85
7.3.10.0070.00716.62
7.3.00.0040.00816.56
7.2.330.0110.00616.77
7.2.320.0090.00916.49
7.2.310.0070.01016.64
7.2.300.0110.01116.73
7.2.290.0030.01416.69
7.2.250.0030.01015.07
7.2.240.0100.00615.03
7.2.230.0070.01015.07
7.2.220.0060.00315.29
7.2.210.0090.00315.25
7.2.200.0080.00515.02
7.2.190.0040.01214.71
7.2.180.0070.01014.92
7.2.170.0070.00714.99
7.2.00.0240.01418.93
7.1.330.0070.00715.73
7.1.320.0030.00715.64
7.1.310.0070.00715.91
7.1.300.0040.01115.73
7.1.290.0030.00915.76
7.1.280.0070.00415.88
7.1.270.0060.00315.76
7.1.260.0040.01115.80
7.1.100.0130.00318.20
7.1.70.0040.00416.92
7.1.60.0040.02219.20
7.1.50.0130.01017.04
7.1.00.0030.03322.36
7.0.200.0240.00714.91
7.0.140.0000.07321.98
7.0.60.0330.07719.95
7.0.50.0030.06017.73
7.0.40.0000.08020.03
7.0.30.0570.06720.20
7.0.20.0300.04720.04
7.0.10.0200.09320.00
7.0.00.0130.07720.11
5.6.280.0070.06721.11
5.6.210.0170.04720.68
5.6.200.0000.09318.09
5.6.190.0100.05720.59
5.6.180.0300.06020.41
5.6.170.0330.07320.42
5.6.160.0030.04720.48
5.6.150.0070.04718.15
5.6.140.0070.03718.11
5.6.130.0170.08018.14
5.6.120.0070.05021.05
5.6.110.0230.06320.95
5.6.100.0100.08021.00
5.6.90.0130.06020.88
5.6.80.0100.03320.40
5.5.350.0130.07020.40
5.5.340.0100.03017.98
5.5.330.0170.07020.15
5.5.320.0270.04020.32
5.5.310.0370.07020.27
5.5.300.0030.04017.87
5.5.290.0070.08017.91
5.5.280.0130.07720.76
5.5.270.0030.05020.86
5.5.260.0100.06020.75
5.5.250.0200.07320.62
5.5.240.0070.08720.27
5.4.450.0170.04319.48
5.4.440.0330.03719.47
5.4.430.0130.04319.47
5.4.420.0330.03719.34
5.4.410.0070.05019.17
5.4.400.0200.04718.69
5.4.390.0170.05318.86
5.4.380.0230.04718.97
5.4.370.0270.04718.82
5.4.360.0170.04018.99
5.4.350.0200.04718.82
5.4.340.0170.04018.80
5.4.320.0100.04719.15
5.4.310.0130.04019.00
5.4.300.0170.05318.68
5.4.290.0270.06718.84
5.4.280.0270.04018.97
5.4.270.0200.03319.02
5.4.260.0200.03719.11
5.4.250.0130.04719.25
5.4.240.0230.03319.14
5.4.230.0230.03319.20
5.4.220.0170.05318.96
5.4.210.0130.04719.02
5.4.200.0200.03318.79
5.4.190.0200.03718.78
5.4.180.0230.04319.20
5.4.170.0170.03718.70
5.4.160.0170.03718.68
5.4.150.0170.04019.09
5.4.140.0170.03716.16
5.4.130.0200.03316.26
5.4.120.0200.03316.24
5.4.110.0130.04016.47
5.4.100.0230.03016.39
5.4.90.0200.03316.48
5.4.80.0230.03016.37
5.4.70.0270.05716.46
5.4.60.0230.06716.04
5.4.50.0170.05016.45
5.4.40.0230.03016.38
5.4.30.0200.03316.04
5.4.20.0270.03716.38
5.4.10.0130.04016.20
5.4.00.0170.03715.90
5.3.290.0130.04314.52
5.3.280.0200.03314.48
5.3.270.0230.04714.65
5.3.260.0170.04014.55
5.3.250.0200.03314.70
5.3.240.0100.05314.56
5.3.230.0200.04714.65
5.3.220.0200.04714.41
5.3.210.0230.03314.66
5.3.200.0100.04314.51
5.3.190.0170.03714.41
5.3.180.0130.04014.45
5.3.170.0230.03314.42
5.3.160.0130.04014.51
5.3.150.0130.04014.41
5.3.140.0200.04714.49
5.3.130.0130.04314.53
5.3.120.0230.04314.53
5.3.110.0100.04314.42
5.3.100.0230.03313.88
5.3.90.0270.02713.98
5.3.80.0170.04013.97
5.3.70.0100.04313.84
5.3.60.0230.03014.10
5.3.50.0130.04013.99
5.3.40.0200.06313.99
5.3.30.0230.06013.77
5.3.20.0270.06313.53
5.3.10.0170.05013.53
5.3.00.0230.05713.47
5.2.170.0100.04011.01
5.2.160.0130.03711.16
5.2.150.0230.05710.98
5.2.140.0170.06711.10
5.2.130.0230.05011.25
5.2.120.0200.04311.18
5.2.110.0130.04710.95
5.2.100.0130.05311.15
5.2.90.0000.05011.04
5.2.80.0070.06010.95
5.2.70.0870.03710.93
5.2.60.1330.02311.20
5.2.50.1530.03010.86
5.2.40.1330.02710.84
5.2.30.1130.02710.91
5.2.20.1230.03310.86
5.2.10.1000.03010.96
5.2.00.1200.03010.68
5.1.60.1130.0239.86
5.1.50.1000.02310.04
5.1.40.1130.0339.95
5.1.30.1230.03310.44
5.1.20.1200.03010.31
5.1.10.1100.02710.20
5.1.00.1170.0309.93
5.0.50.0030.0478.44
5.0.40.0030.0238.36
5.0.30.0030.0438.36
5.0.20.0100.0308.36
5.0.10.0070.0208.36
5.0.00.0000.0438.36
4.4.90.0000.0178.36
4.4.80.0470.0208.36
4.4.70.0500.0178.36
4.4.60.0500.0178.36
4.4.50.0770.0138.36
4.4.40.0530.0208.36
4.4.30.0700.0208.36
4.4.20.0570.0208.36
4.4.10.0570.0178.36
4.4.00.0630.0408.36
4.3.110.0430.0278.36
4.3.100.0570.0208.36
4.3.90.0530.0108.36
4.3.80.0700.0338.36
4.3.70.0630.0308.36
4.3.60.0530.0208.36
4.3.50.0600.0208.36
4.3.40.0700.0378.36
4.3.30.0300.0238.36
4.3.20.0270.0208.36
4.3.10.0270.0178.36
4.3.00.0230.0208.36

preferences:
47.75 ms | 401 KiB | 5 Q