3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( "Kyle" => array(07, 01, 00, 03, 04, 01, 00, 07, 03, 04, 04), "Mike" => array(04, 03, 00, 07, 04, 07, 00, 01, 00, 07, 04), "Will" => array(03, 04, 00, 03, 04, 07, 00, 01, 00, 07, 04), "Johnny" => array(07, 07, 00, 03, 00, 04, 00, 01, 01, 04, 03), "Vasques" => array(03, 01, 00, 03, 04, 07, 00, 01, 00, 07, 07) ); function cmp($a, $b) { return array_sum($b) - array_sum($a); } uasort($scores, "cmp"); /* function sort_function(array $a, array $b) { $arr1_val = array_sum($a); $arr2_val = array_sum($b); return $arr2_val - $arr1_val; } uasort($scores,"sort_function"); */ print_r($scores);

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.40.0070.01418.51
8.3.30.0140.00319.00
8.3.20.0040.00420.34
8.3.10.0040.00423.61
8.3.00.0040.00419.13
8.2.170.0140.00322.96
8.2.160.0100.01020.27
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.24
8.2.110.0080.00021.98
8.2.100.0120.00019.47
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00917.80
8.2.50.0090.00018.07
8.2.40.0050.00319.83
8.2.30.0000.00718.00
8.2.20.0070.00017.55
8.2.10.0000.00718.15
8.2.00.0040.00417.68
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0070.01123.91
8.1.230.0110.00018.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0050.00517.13
8.1.180.0040.00419.13
8.1.170.0080.00018.53
8.1.160.0050.00321.84
8.1.150.0030.00518.60
8.1.140.0040.00417.41
8.1.130.0050.00317.86
8.1.120.0030.00317.33
8.1.110.0030.00517.32
8.1.100.0070.00017.40
8.1.90.0000.00817.38
8.1.80.0000.00717.38
8.1.70.0030.00317.36
8.1.60.0030.00717.52
8.1.50.0040.00417.45
8.1.40.0000.00917.47
8.1.30.0000.00917.52
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0000.00817.48
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0040.00418.27
8.0.270.0050.00317.25
8.0.260.0000.00617.17
8.0.250.0000.00716.84
8.0.240.0040.00417.03
8.0.230.0030.00316.86
8.0.220.0070.00016.92
8.0.210.0080.00016.86
8.0.200.0030.00316.80
8.0.190.0040.00416.92
8.0.180.0070.00016.88
8.0.170.0000.00916.88
8.0.160.0040.00316.96
8.0.150.0020.00516.80
8.0.140.0040.00416.80
8.0.130.0000.00513.26
8.0.120.0040.00416.69
8.0.110.0040.00416.89
8.0.100.0070.00016.84
8.0.90.0040.00416.85
8.0.80.0060.01016.83
8.0.70.0050.00316.95
8.0.60.0000.00716.77
8.0.50.0040.00416.71
8.0.30.0120.00717.16
8.0.20.0120.00717.40
8.0.10.0030.00516.86
8.0.00.0090.01316.73
7.4.330.0000.00515.00
7.4.320.0030.00316.48
7.4.300.0000.00616.45
7.4.290.0030.00316.54
7.4.280.0040.00416.46
7.4.270.0040.00416.57
7.4.260.0070.00016.41
7.4.250.0070.00016.40
7.4.240.0000.00816.51
7.4.230.0070.00016.57
7.4.220.0070.01116.49
7.4.210.0080.00716.50
7.4.200.0050.00216.21
7.4.190.0030.00316.50
7.4.160.0130.00316.53
7.4.150.0160.00617.40
7.4.140.0130.00517.86
7.4.130.0110.00816.44
7.4.120.0080.01016.45
7.4.110.0120.00616.46
7.4.100.0060.01216.55
7.4.90.0100.00716.39
7.4.80.0120.00619.39
7.4.70.0100.00816.40
7.4.60.0220.00416.47
7.4.50.0040.00416.30
7.4.40.0100.00616.38
7.4.30.0120.00416.53
7.4.00.0060.00914.99
7.3.330.0050.00013.11
7.3.320.0020.00213.28
7.3.310.0040.00416.14
7.3.300.0030.00316.24
7.3.290.0150.00616.24
7.3.280.0100.00816.25
7.3.270.0080.00817.40
7.3.260.0130.00616.35
7.3.250.0090.01116.34
7.3.240.0110.00616.30
7.3.230.0090.00916.39
7.3.210.0030.01316.43
7.3.200.0090.00619.39
7.3.190.0090.00916.41
7.3.180.0090.00616.38
7.3.170.0100.00616.27
7.3.160.0120.00316.35
7.3.120.0090.00614.86
7.2.330.0030.01316.49
7.2.320.0100.01116.50
7.2.310.0060.01116.29
7.2.300.0030.01616.60
7.2.290.0100.00716.61
7.2.60.0000.01416.56
7.2.00.0000.01319.25
7.1.200.0100.00315.63
7.1.100.0050.00517.79
7.1.70.0000.00816.89
7.1.60.0030.02019.46
7.1.50.0060.01616.65
7.1.00.0030.07722.35
7.0.200.0090.00016.70
7.0.140.0000.07722.10
7.0.100.0100.08020.01
7.0.90.0030.04719.98
7.0.80.0100.04019.94
7.0.70.0230.03319.86
7.0.60.0230.05719.89
7.0.50.0200.08020.28
7.0.40.0100.07720.16
7.0.30.0130.08320.02
7.0.20.0100.06019.94
7.0.10.0130.07720.03
7.0.00.0070.07320.13
5.6.280.0070.07321.09
5.6.250.0130.07320.64
5.6.240.0130.08020.68
5.6.230.0100.05720.55
5.6.220.0230.07320.69
5.6.210.0030.09020.60
5.6.200.0170.06721.12
5.6.190.0130.08321.14
5.6.180.0070.09020.96
5.6.170.0170.04321.11
5.6.160.0070.08321.11
5.6.150.0000.05020.92
5.6.140.0100.08321.04
5.6.130.0170.04321.02
5.6.120.0100.08321.02
5.6.110.0170.06021.02
5.6.100.0100.09021.09
5.6.90.0130.07720.92
5.6.80.0200.06720.37
5.6.70.0130.04020.50
5.6.60.0030.06720.31
5.6.50.0130.06020.43
5.6.40.0130.03720.43
5.6.30.0170.05020.40
5.6.20.0100.04720.41
5.6.10.0070.08320.29
5.6.00.0000.09020.38
5.5.380.0030.04320.51
5.5.370.0130.07320.58
5.5.360.0170.07320.42
5.5.350.0070.08320.45
5.5.340.0070.08720.86
5.5.330.0070.06720.87
5.5.320.0100.06720.93
5.5.310.0070.04720.78
5.5.300.0170.07720.77
5.5.290.0100.07320.64
5.5.280.0030.05320.75
5.5.270.0000.10320.91
5.5.260.0100.06720.72
5.5.250.0170.06720.65
5.5.240.0070.05020.19
5.5.230.0100.04320.21
5.5.220.0200.06720.18
5.5.210.0200.03020.14
5.5.200.0000.08719.98
5.5.190.0070.05020.24
5.5.180.0070.04320.24
5.5.160.0130.07720.14
5.5.150.0200.05020.24
5.5.140.0030.07720.19
5.5.130.0070.07020.11
5.5.120.0030.07720.12
5.5.110.0070.07020.15
5.5.100.0070.06720.08
5.5.90.0100.05720.10
5.5.80.0030.05320.01
5.5.70.0170.03020.05
5.5.60.0100.06720.16
5.5.50.0170.06319.96
5.5.40.0100.04020.16
5.5.30.0100.03720.03
5.5.20.0170.07320.05
5.5.10.0100.05319.97
5.5.00.0070.03319.98
5.4.450.0070.04719.37
5.4.440.0030.05319.48
5.4.430.0130.07719.55
5.4.420.0100.07719.47
5.4.410.0100.04719.23
5.4.400.0030.08318.88
5.4.390.0130.05719.20
5.4.380.0030.06719.16
5.4.370.0130.07019.14
5.4.360.0070.06319.03
5.4.350.0070.04319.16
5.4.340.0170.06719.11
5.4.320.0030.04019.13
5.4.310.0200.04719.21
5.4.300.0030.07719.04
5.4.290.0070.06719.18
5.4.280.0130.07318.94
5.4.270.0030.05718.86
5.4.260.0100.06319.09
5.4.250.0170.03319.04
5.4.240.0030.03318.84
5.4.230.0130.06318.90
5.4.220.0070.08019.04
5.4.210.0100.04019.15
5.4.200.0030.06719.15
5.4.190.0030.07019.13
5.4.180.0100.07019.08
5.4.170.0100.07319.02
5.4.160.0130.06718.85
5.4.150.0170.07019.02
5.4.140.0130.06316.38
5.4.130.0000.04316.18
5.4.120.0100.07716.33
5.4.110.0100.06316.45
5.4.100.0070.03316.42
5.4.90.0070.03316.28
5.4.80.0030.07316.45
5.4.70.0030.08016.34
5.4.60.0030.04316.46
5.4.50.0030.05716.48
5.4.40.0070.05716.35
5.4.30.0100.03716.39
5.4.20.0100.03016.50
5.4.10.0000.05716.33
5.4.00.0000.04015.82
5.3.290.0100.04014.63
5.3.280.0070.03714.71
5.3.270.0000.08714.65
5.3.260.0030.08014.71
5.3.250.0070.07714.73
5.3.240.0070.04014.64
5.3.230.0070.04314.67
5.3.220.0070.05714.70
5.3.210.0100.07314.53
5.3.200.0000.04014.56
5.3.190.0130.03314.59
5.3.180.0130.07014.63
5.3.170.0100.03714.69
5.3.160.0070.07714.70
5.3.150.0030.04314.57
5.3.140.0030.07014.63
5.3.130.0200.04314.66
5.3.120.0130.04314.55
5.3.110.0070.04314.65
5.3.100.0070.03714.03
5.3.90.0070.08014.14
5.3.80.0100.05014.02
5.3.70.0130.04314.09
5.3.60.0070.06714.13
5.3.50.0070.06713.95
5.3.40.0100.07014.07
5.3.30.0030.04713.81
5.3.20.0070.07313.69
5.3.10.0000.04313.71
5.3.00.0070.05313.54
5.2.170.0070.05311.08
5.2.160.0030.03711.22
5.2.150.0000.05011.05
5.2.140.0100.06011.23
5.2.130.0000.03311.02
5.2.120.0000.06011.25
5.2.110.0070.03010.97
5.2.100.0130.05711.23
5.2.90.0070.06011.10
5.2.80.0100.03711.17
5.2.70.0130.05711.17
5.2.60.0030.03710.96
5.2.50.0070.05311.09
5.2.40.0170.06310.88
5.2.30.0030.06011.10
5.2.20.0070.06011.03
5.2.10.0170.02310.80
5.2.00.0170.05010.74
5.1.60.0070.0279.85
5.1.50.0030.03010.00
5.1.40.0000.0339.88
5.1.30.0070.03710.21
5.1.20.0030.05010.50
5.1.10.0100.0309.92
5.1.00.0100.05310.07
5.0.50.0030.0509.07
5.0.40.0070.0239.07
5.0.30.0100.0379.07
5.0.20.0200.0279.07
5.0.10.0070.0209.07
5.0.00.0000.0639.07
4.4.90.0070.0109.07
4.4.80.0000.0179.07
4.4.70.0000.0379.07
4.4.60.0070.0279.07
4.4.50.0030.0339.07
4.4.40.0000.0579.07
4.4.30.0070.0339.07
4.4.20.0030.0309.07
4.4.10.0030.0339.07
4.4.00.0000.0279.07
4.3.110.0070.0279.07
4.3.100.0000.0339.07
4.3.90.0070.0309.07
4.3.80.0000.0379.07
4.3.70.0070.0139.07
4.3.60.0070.0139.07
4.3.50.0000.0439.07
4.3.40.0100.0409.07
4.3.30.0100.0279.07
4.3.20.0000.0339.07
4.3.10.0030.0309.07
4.3.00.0000.0209.07

preferences:
44.73 ms | 400 KiB | 5 Q