3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name1 = "name1"; $name2 = "name2"; $teams_name_points[$name1] = 1; $teams_name_points[$name2] = 2; var_dump(ksort($teams_name_points)); var_dump($teams_name_points);

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.0060.00918.18
8.3.50.0080.01122.92
8.3.40.0000.01418.72
8.3.30.0030.01018.92
8.3.20.0070.00020.31
8.3.10.0050.00221.60
8.3.00.0080.00017.91
8.2.180.0060.00916.63
8.2.170.0140.00322.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00419.22
8.2.110.0070.00321.05
8.2.100.0070.00417.91
8.2.90.0050.00319.23
8.2.80.0090.00017.97
8.2.70.0080.00017.63
8.2.60.0030.00517.93
8.2.50.0000.00918.10
8.2.40.0050.00318.16
8.2.30.0000.00819.38
8.2.20.0000.00817.73
8.2.10.0040.00417.92
8.2.00.0040.00417.66
8.1.280.0090.00625.92
8.1.270.0030.00620.57
8.1.260.0070.01026.35
8.1.250.0080.00028.09
8.1.240.0100.00022.69
8.1.230.0090.00317.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0000.00718.87
8.1.150.0040.00418.86
8.1.140.0030.00617.34
8.1.130.0040.00417.81
8.1.120.0060.00317.39
8.1.110.0030.00517.36
8.1.100.0070.00017.37
8.1.90.0030.00317.28
8.1.80.0000.00717.44
8.1.70.0030.00317.22
8.1.60.0050.00317.49
8.1.50.0080.00017.45
8.1.40.0090.00017.47
8.1.30.0000.00717.47
8.1.20.0040.00417.61
8.1.10.0000.00717.45
8.1.00.0030.00717.49
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0000.00718.24
8.0.270.0030.00316.74
8.0.260.0070.00017.04
8.0.250.0000.00716.76
8.0.240.0040.00416.87
8.0.230.0060.00016.91
8.0.220.0040.00416.78
8.0.210.0080.00016.70
8.0.200.0030.00316.87
8.0.190.0000.00816.86
8.0.180.0040.00416.84
8.0.170.0000.00816.80
8.0.160.0000.00716.81
8.0.150.0000.00716.64
8.0.140.0000.00716.66
8.0.130.0000.00613.22
8.0.120.0040.00416.79
8.0.110.0000.00816.70
8.0.100.0040.00416.71
8.0.90.0070.00016.71
8.0.80.0030.01316.80
8.0.70.0070.00016.71
8.0.60.0030.00516.88
8.0.50.0080.00016.69
8.0.30.0110.01117.08
8.0.20.0090.01117.40
8.0.10.0050.00216.98
8.0.00.0120.00616.90
7.4.330.0050.00015.13
7.4.320.0050.00316.42
7.4.300.0030.00316.47
7.4.290.0050.00516.43
7.4.280.0000.00816.45
7.4.270.0000.00716.35
7.4.260.0060.00316.50
7.4.250.0070.00016.44
7.4.240.0030.00316.44
7.4.230.0000.00716.35
7.4.220.0140.00316.47
7.4.210.0030.01216.54
7.4.200.0070.00016.57
7.4.160.0040.01616.27
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0050.01316.34
7.4.120.0080.00916.49
7.4.110.0110.01216.39
7.4.100.0110.00716.25
7.4.90.0110.00616.46
7.4.80.0100.00719.39
7.4.70.0040.01616.34
7.4.60.0170.00316.48
7.4.50.0060.00316.47
7.4.40.0070.01016.36
7.4.30.0060.01716.47
7.4.00.0040.01214.61
7.3.330.0000.00513.14
7.3.320.0060.00013.17
7.3.310.0000.00816.25
7.3.300.0040.00416.16
7.3.290.0060.00816.23
7.3.280.0090.00616.26
7.3.270.0110.00617.40
7.3.260.0100.00716.39
7.3.250.0110.00616.47
7.3.240.0070.01716.64
7.3.230.0090.00616.39
7.3.210.0110.00516.27
7.3.200.0180.00519.39
7.3.190.0030.01316.38
7.3.180.0090.00616.30
7.3.170.0090.00616.47
7.3.160.0060.01016.43
7.3.10.0090.00716.36
7.3.00.0110.00816.36
7.2.330.0070.01016.63
7.2.320.0060.01216.24
7.2.310.0030.01316.63
7.2.300.0050.01516.57
7.2.290.0190.00316.65
7.2.130.0070.00516.62
7.2.120.0080.00716.65
7.2.110.0110.00616.47
7.2.100.0090.00516.59
7.2.90.0090.00716.75
7.2.80.0030.01116.73
7.2.70.0070.00816.64
7.2.60.0060.00816.76
7.2.50.0090.00616.70
7.2.40.0130.00816.90
7.2.30.0070.00816.81
7.2.20.0130.00616.60
7.2.10.0050.01216.44
7.2.00.0080.00617.39
7.1.250.0110.00115.44
7.1.100.0080.00817.97
7.1.70.0030.00617.04
7.1.60.0060.01619.34
7.1.50.0110.01417.08
7.1.00.0100.07022.51
7.0.200.0000.00816.86
7.0.140.0100.02722.10
7.0.60.0100.07719.83
7.0.50.0130.08017.80
7.0.40.0030.06720.03
7.0.30.0600.06020.02
7.0.20.0230.06720.03
7.0.10.0100.04720.00
7.0.00.0070.07720.09
5.6.280.0070.07021.02
5.6.210.0030.04020.54
5.6.200.0100.08318.19
5.6.190.0000.09020.39
5.6.180.0330.07720.41
5.6.170.0270.08020.38
5.6.160.0070.07020.48
5.6.150.0070.08318.18
5.6.140.0200.04018.18
5.6.130.0100.08018.16
5.6.120.0000.04321.14
5.6.110.0030.04320.88
5.6.100.0100.03320.98
5.6.90.0070.09320.92
5.6.80.0070.08720.36
5.6.70.4570.03020.49
5.5.350.0300.07320.41
5.5.340.0000.04017.98
5.5.330.0030.04320.20
5.5.320.0370.07720.14
5.5.310.0300.08020.13
5.5.300.0000.06717.91
5.5.290.0100.06717.98
5.5.280.0100.06020.75
5.5.270.0100.07320.66
5.5.260.0130.07020.75
5.5.250.0000.09720.60
5.5.240.0300.07020.06
5.4.450.0670.05319.39
5.4.440.1300.03719.35
5.4.430.2000.04319.13
5.4.420.0100.05319.35
5.4.410.0130.05018.68
5.4.400.0270.05718.50
5.4.390.0070.05318.43
5.4.380.0030.06318.62
5.4.370.0100.05018.68
5.4.360.0130.04718.55
5.4.350.0030.04013.71
5.4.340.0030.03713.66
5.4.320.0000.04314.17
5.4.310.0070.03714.28
5.4.300.0070.03714.21
5.4.290.0100.03714.12
5.4.280.0100.03314.05
5.4.270.0070.04714.08
5.4.260.0100.03714.02
5.4.250.0000.04314.07
5.4.240.0000.04714.08
5.4.230.0070.03714.20
5.4.220.0070.04714.25
5.4.210.0070.04714.20
5.4.200.0000.05014.10
5.4.190.0030.04014.02
5.4.180.0130.03314.08
5.4.170.0070.03714.02
5.4.160.0070.03714.09
5.4.150.0200.02314.08
5.4.140.0030.04013.70
5.4.130.0130.03013.71
5.4.120.0000.04013.58
5.4.110.0000.04013.70
5.4.100.0130.03013.63
5.4.90.0100.03313.63
5.4.80.0070.03713.80
5.4.70.0070.03313.63
5.4.60.0070.03313.82
5.4.50.0070.03313.71
5.4.40.0070.03713.71
5.4.30.0130.03313.70
5.4.20.0100.03313.64
5.4.10.0030.04013.68
5.4.00.0000.04713.12
5.3.290.0100.03714.63
5.3.280.0100.04014.64
5.3.270.0130.03314.47
5.3.260.0030.04314.53
5.3.250.0070.03714.46
5.3.240.0030.04314.53
5.3.230.0130.03014.44
5.3.220.0030.04014.45
5.3.210.0030.04014.46
5.3.200.0030.04014.53
5.3.190.0130.03014.57
5.3.180.0130.03014.59
5.3.170.0170.02714.61
5.3.160.0100.04314.50
5.3.150.0170.04314.61
5.3.140.0100.05014.58
5.3.130.0070.05714.44
5.3.120.0070.05014.47
5.3.110.0000.04714.43
5.3.100.0100.03313.88
5.3.90.0070.03713.93
5.3.80.0070.03713.91
5.3.70.0100.03313.86
5.3.60.0100.03313.93
5.3.50.0030.04013.80
5.3.40.0000.04013.82
5.3.30.0030.03713.85
5.3.20.0070.03713.57
5.3.10.0030.03713.64
5.3.00.0000.04013.45
5.2.170.0000.03711.07
5.2.160.0070.02711.12
5.2.150.0070.02711.11
5.2.140.0100.02711.11
5.2.130.0030.03011.00
5.2.120.0000.03311.08
5.2.110.0030.03311.06
5.2.100.0070.02711.02
5.2.90.0030.03011.02
5.2.80.0000.03311.07
5.2.70.0000.03311.18
5.2.60.0000.03710.96
5.2.50.0070.03010.99
5.2.40.0070.02710.96
5.2.30.0030.03011.06
5.2.20.0030.03010.82
5.2.10.0070.02710.83
5.2.00.0030.03010.79
5.1.60.0000.02710.00
5.1.50.0030.02710.06
5.1.40.0030.0279.96
5.1.30.0030.02710.24
5.1.20.0030.02710.34
5.1.10.0070.02710.18
5.1.00.0030.03310.02
5.0.50.0070.0208.55
5.0.40.0030.0208.38
5.0.30.0070.0308.25
5.0.20.0000.0238.32
5.0.10.0000.0238.12
5.0.00.0030.0408.08
4.4.90.0100.0135.83
4.4.80.0070.0135.81
4.4.70.0100.0105.79
4.4.60.0000.0205.86
4.4.50.0030.0205.80
4.4.40.0070.0305.88
4.4.30.0070.0175.82
4.4.20.0030.0205.90
4.4.10.0070.0175.90
4.4.00.0030.0335.86
4.3.110.0030.0175.77
4.3.100.0030.0175.75
4.3.90.0030.0135.74
4.3.80.0000.0335.85
4.3.70.0030.0135.71
4.3.60.0030.0135.81
4.3.50.0000.0175.74
4.3.40.0000.0275.71
4.3.30.0000.0174.52
4.3.20.0000.0174.46
4.3.10.0000.0174.42
4.3.00.0170.02715.56

preferences:
39.61 ms | 401 KiB | 5 Q