3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sort3210ASC($a, $b) { if ($a[3] !== $b[3]) return $a[3] <=> $b[3]; if ($a[2] !== $b[2]) return $a[2] <=> $b[2]; if ($a[1] !== $b[1]) return $a[1] <=> $b[1]; if ($a[0] !== $b[0]) return $a[0] <=> $b[0]; return 0; } $dud = [[2,3,"2018-07-19","08:23",1], [2,3,"2018-07-19","08:30",2], [2,1,"2018-07-19","08:14",3], [2,4,"2018-07-19","07:11",4], [2,1,"2018-07-19","07:17",5], [2,9,"2018-07-19","07:31",6], [2,4,"2018-07-19","05:06",7], [2,6,"2018-07-18","08:10",8], [2,9,"2018-07-19","07:20",9], [1,7,"2018-07-19","08:27",10], [1,5,"2018-07-19","08:11",11], [1,7,"2018-07-18","08:22",12], [1,5,"2018-07-19","08:09",13], [2,6,"2018-07-18","07:12",14], [1,7,"2018-07-18","08:21",15], [1,7,"2018-07-19","07:09",16]]; array_multisort( array_column($dud, 0), array_column($dud, 1), array_column($dud, 2), array_column($dud, 3), $dud ); var_export($dud);

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.70.0120.00318.18
8.3.60.0120.00318.43
8.3.50.0120.00318.33
8.3.40.0140.00418.67
8.3.30.0140.00718.63
8.3.20.0080.00018.78
8.3.10.0070.00023.70
8.3.00.0040.00423.43
8.2.190.0000.01516.58
8.2.180.0190.00016.50
8.2.170.0080.00622.96
8.2.160.0070.00720.39
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0070.00022.26
8.2.120.0040.00426.35
8.2.110.0030.01020.88
8.2.100.0060.00617.84
8.2.90.0080.00317.91
8.2.80.0120.00017.97
8.2.70.0060.00317.91
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00419.34
8.2.30.0000.00720.52
8.2.20.0000.01017.93
8.2.10.0040.00418.02
8.2.00.0000.00719.36
8.1.280.0210.00025.92
8.1.270.0050.00323.80
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.02
8.1.230.0030.00722.68
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.10
8.1.190.0030.00517.10
8.1.180.0050.00318.10
8.1.170.0030.00618.40
8.1.160.0070.00018.89
8.1.150.0070.00018.77
8.1.140.0020.00519.05
8.1.130.0000.01119.09
8.1.120.0030.00317.30
8.1.110.0000.00717.39
8.1.100.0000.00717.40
8.1.90.0070.00417.39
8.1.80.0050.00317.32
8.1.70.0080.00017.30
8.1.60.0000.00917.43
8.1.50.0040.00417.49
8.1.40.0000.00817.33
8.1.30.0050.00317.56
8.1.20.0040.00417.61
8.1.10.0000.00717.46
8.1.00.0070.00017.48
8.0.300.0020.00521.79
8.0.290.0040.00416.63
8.0.280.0000.00818.32
8.0.270.0040.00417.28
8.0.260.0030.00617.26
8.0.250.0080.00016.82
8.0.240.0000.00716.95
8.0.230.0030.00316.96
8.0.220.0030.00316.91
8.0.210.0050.00216.81
8.0.200.0000.00716.94
8.0.190.0040.00416.85
8.0.180.0000.00816.75
8.0.170.0040.00416.86
8.0.160.0000.00716.95
8.0.150.0030.00616.68
8.0.140.0000.00816.78
8.0.130.0030.00313.25
8.0.120.0040.00416.78
8.0.110.0090.00016.72
8.0.100.0030.00516.72
8.0.90.0000.00816.74
8.0.80.0090.01116.80
8.0.70.0000.00716.84
8.0.60.0070.00016.65
8.0.50.0000.00816.75
8.0.30.0110.00716.83
8.0.20.0130.00717.40
8.0.10.0050.00216.82
8.0.00.0110.00816.81
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0030.00316.41
7.4.290.0070.00016.61
7.4.280.0070.00016.43
7.4.270.0030.00616.48
7.4.260.0030.00316.54
7.4.250.0030.00716.50
7.4.240.0070.00016.48
7.4.230.0070.00016.54
7.4.220.0080.00016.47
7.4.210.0090.00516.59
7.4.200.0000.00716.50
7.4.160.0130.00516.37
7.4.140.0090.01017.86
7.4.130.0190.00716.48
7.4.120.0110.00916.43
7.4.110.0080.01116.39
7.4.100.0120.00616.43
7.4.90.0070.01116.40
7.4.80.0130.01019.39
7.4.70.0140.01116.73
7.4.60.0170.00716.33
7.4.50.0060.00616.46
7.4.40.0070.01016.49
7.4.00.0120.00614.70
7.3.330.0030.00313.02
7.3.320.0000.00513.20
7.3.310.0030.00316.19
7.3.300.0030.00316.17
7.3.290.0030.00316.22
7.3.280.0070.01016.14
7.3.260.0060.01216.45
7.3.240.0110.01016.23
7.3.230.0120.00616.31
7.3.210.0080.00816.21
7.3.200.0110.00816.15
7.3.190.0060.01016.51
7.3.180.0100.00716.28
7.3.170.0140.00716.46
7.3.160.0060.01016.32
7.2.330.0120.00616.63
7.2.320.0130.00316.53
7.2.310.0060.00916.31
7.2.300.0040.01216.63
7.2.290.0160.00616.23
7.2.80.0360.00314.44
7.2.70.0450.00014.81
7.2.60.0360.00614.89
7.2.50.0400.00714.93
7.2.40.0410.00614.88
7.2.30.0350.01014.71
7.2.20.0370.00614.87
7.2.10.0330.00714.88
7.2.00.0420.00614.97
7.1.200.0030.01015.52
7.1.190.0370.00913.84
7.1.180.0540.00313.90
7.1.170.0370.00713.57
7.1.160.0320.00613.91
7.1.150.0390.00313.92
7.1.140.0340.01013.66
7.1.130.0290.01013.82
7.1.120.0330.00613.74
7.1.110.0350.00914.00
7.1.100.0460.00713.91
7.1.90.0420.00313.93
7.1.80.0410.00713.63
7.1.70.0450.00614.00
7.1.60.0670.00631.66
7.1.50.0520.01431.74
7.1.40.1050.01631.56
7.1.30.0650.01031.88
7.1.20.0640.00631.90
7.1.10.0400.01013.79
7.1.00.0370.00313.95

preferences:
63.76 ms | 401 KiB | 5 Q