3v4l.org

run code in 300+ PHP versions simultaneously
<?php $any_power_of_two = 65535; $alphabetSize = 62; $values = array_fill(0, $alphabetSize, 0); for ($i = 0; $i < $any_power_of_two; ++$i) { ++$values[$i % $alphabetSize]; } var_dump($values);

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.10.0000.01017.49
8.3.140.0060.00917.16
8.3.130.0030.00618.46
8.3.120.0040.00420.80
8.3.110.0100.01020.94
8.3.100.0030.00718.10
8.3.90.0130.00326.77
8.3.80.0030.00619.36
8.3.70.0080.00817.59
8.3.60.0080.00816.60
8.3.50.0110.00719.66
8.3.40.0140.00618.15
8.3.30.0110.01018.13
8.3.20.0110.00619.00
8.3.10.0080.00819.61
8.3.00.0070.00818.34
8.2.260.0140.00720.19
8.2.250.0090.00618.55
8.2.240.0070.01017.09
8.2.230.0070.01022.58
8.2.220.0100.01024.06
8.2.210.0100.01026.77
8.2.200.0060.00318.88
8.2.190.0120.01116.58
8.2.180.0150.00417.50
8.2.170.0130.00718.42
8.2.160.0160.00420.22
8.2.150.0120.00520.78
8.2.140.0100.00820.83
8.2.130.0070.01121.88
8.2.120.0140.00519.34
8.2.110.0120.00818.51
8.2.100.0180.00517.61
8.2.90.0190.00317.61
8.2.80.0110.00818.00
8.2.70.0140.00517.82
8.2.60.0100.00617.69
8.2.50.0120.00417.91
8.2.40.0090.00617.92
8.2.30.0120.00417.85
8.2.20.0130.00417.59
8.2.10.0130.00417.81
8.2.00.0160.00517.69
8.1.310.0100.01016.52
8.1.300.0000.00817.73
8.1.290.0060.00330.84
8.1.280.0160.00921.25
8.1.270.0170.00420.68
8.1.260.0070.01121.86
8.1.250.0130.00622.67
8.1.240.0100.00719.75
8.1.230.0100.00818.19
8.1.220.0120.00517.57
8.1.210.0060.01218.06
8.1.200.0090.00717.17
8.1.190.0050.01017.22
8.1.180.0110.00517.55
8.1.170.0130.00518.06
8.1.160.0070.00718.06
8.1.150.0080.00617.98
8.1.140.0090.00717.15
8.1.130.0130.00318.02
8.1.120.0080.00617.33
8.1.110.0180.00217.16
8.1.100.0140.00217.27
8.1.90.0120.00417.33
8.1.80.0100.00517.27
8.1.70.0140.00317.26
8.1.60.0160.00117.32
8.1.50.0180.00817.35
8.1.40.0180.00617.34
8.1.30.0080.01017.48
8.1.20.0040.01217.49
8.1.10.0210.01117.42
8.1.00.0250.00517.32
8.0.300.0120.00717.70
8.0.290.0120.00316.60
8.0.280.0120.00417.49
8.0.270.0130.00116.96
8.0.260.0140.00219.34
8.0.250.0110.00316.80
8.0.240.0100.00716.72
8.0.230.0120.00216.79
8.0.220.0110.00416.78
8.0.210.0090.00516.75
8.0.200.0140.00016.77
8.0.190.0100.00516.86
8.0.180.0110.00516.76
8.0.170.0070.00816.78
8.0.160.0100.00416.77
8.0.150.0110.00316.72
8.0.140.0070.01016.69
8.0.130.0170.00214.95
8.0.120.0110.00516.66
8.0.110.0100.00716.74
8.0.100.0080.00716.82
8.0.90.0110.00616.67
8.0.80.0210.00016.76
8.0.70.0130.00516.72
8.0.60.0110.00516.79
8.0.50.0090.00916.68
8.0.30.0170.00416.76
8.0.20.0110.01417.14
8.0.10.0100.00716.79
8.0.00.0130.00916.75
7.4.330.0120.00315.80
7.4.320.0080.00516.57
7.4.300.0080.00516.51
7.4.290.0080.00816.40
7.4.280.0150.00216.55
7.4.270.0130.00216.51
7.4.260.0110.00516.55
7.4.250.0120.00216.46
7.4.240.0070.00516.47
7.4.230.0120.00416.54
7.4.220.0160.00816.62
7.4.210.0130.00616.59
7.4.200.0090.00516.50
7.4.190.0110.01116.58
7.4.180.0140.00716.58
7.4.160.0110.00916.50
7.4.150.0150.01116.99
7.4.140.0160.00517.43
7.4.130.0130.01116.67
7.4.120.0150.00916.57
7.4.110.0190.00416.45
7.4.100.0200.00516.58
7.4.90.0130.00716.51
7.4.80.0180.00517.99
7.4.70.0170.00516.47
7.4.60.0120.00916.42
7.4.50.0070.00816.57
7.4.40.0140.00916.58
7.4.30.0160.00516.57
7.4.20.0120.00916.58
7.4.10.0130.00515.77
7.4.00.0060.01415.48
7.3.330.0130.00414.83
7.3.320.0100.00614.86
7.3.310.0110.00316.41
7.3.300.0090.00716.37
7.3.290.0160.00016.40
7.3.280.0110.01416.40
7.3.270.0160.00616.99
7.3.260.0120.01016.59
7.3.250.0180.00716.37
7.3.240.0160.00516.60
7.3.230.0130.01016.56
7.3.220.0210.01116.58
7.3.210.0180.00816.59
7.3.200.0190.01017.99
7.3.190.0140.00916.56
7.3.180.0190.00516.53
7.3.170.0170.00916.50
7.3.160.0090.01316.49
7.3.150.0230.00016.58
7.3.140.0150.00616.58
7.3.130.0100.00915.71
7.3.120.0130.00615.76
7.3.110.0110.00815.65
7.3.100.0120.00815.77
7.3.90.0150.00715.73
7.3.80.0110.00515.85
7.3.70.0110.00815.69
7.3.60.0190.00515.74
7.3.50.0090.00915.68
7.3.40.0140.00615.55
7.3.30.0090.01115.80
7.3.20.0120.01017.29
7.3.10.0130.00617.34
7.3.00.0120.00917.32
7.2.340.0150.00816.58
7.2.330.0140.01016.58
7.2.320.0180.00816.67
7.2.310.0140.01116.67
7.2.300.0170.00516.64
7.2.290.0100.01016.57
7.2.280.0120.00716.58
7.2.270.0160.01216.58
7.2.260.0140.00815.78
7.2.250.0130.00915.89
7.2.240.0120.00715.78
7.2.230.0110.01215.80
7.2.220.0160.00415.78
7.2.210.0120.00415.88
7.2.200.0120.00915.74
7.2.190.0120.00915.86
7.2.180.0150.01015.76
7.2.170.0130.00915.70
7.2.160.0160.00515.81
7.2.150.0180.00917.52
7.2.140.0110.01017.61
7.2.130.0100.01217.58
7.2.120.0130.00917.30
7.2.110.0110.00817.14
7.2.100.0110.00717.10
7.2.90.0130.00617.22
7.2.80.0060.01017.03
7.2.70.0140.00417.20
7.2.60.0090.00817.23
7.2.50.0050.01017.28
7.2.40.0100.00817.40
7.2.30.0070.01217.16
7.2.20.0090.01017.35
7.2.10.0110.01017.35
7.2.00.0080.01117.27
7.1.330.0080.01216.55
7.1.320.0100.01316.59
7.1.310.0130.00716.29
7.1.300.0080.01016.45
7.1.290.0100.00916.39
7.1.280.0090.00916.31
7.1.270.0120.00516.44
7.1.260.0080.00916.52
7.1.250.0090.01116.50
7.1.240.0120.00816.25
7.1.230.0090.00716.18
7.1.220.0090.01016.20
7.1.210.0090.00916.21
7.1.200.0080.01016.05
7.1.190.0080.01116.13
7.1.180.0040.01116.21
7.1.170.0100.00716.07
7.1.160.0090.00916.19
7.1.150.0090.00816.17
7.1.140.0090.01016.22
7.1.130.0080.00716.14
7.1.120.0090.00816.24
7.1.110.0070.00916.21
7.1.100.0070.01116.33
7.1.90.0090.01116.27
7.1.80.0080.00916.29
7.1.70.0160.01116.59
7.1.60.0190.01116.65
7.1.50.0150.01416.59
7.1.40.0160.01016.52
7.1.30.1840.00916.56
7.1.20.0130.00616.68
7.1.10.0090.01016.48
7.1.00.0140.00716.54
7.0.330.0130.00816.02
7.0.320.0110.00615.94
7.0.310.0080.00815.94
7.0.300.0090.00815.81
7.0.290.0100.00415.83
7.0.280.0070.00615.80
7.0.270.0060.01215.89
7.0.260.0070.01115.86
7.0.250.0080.00915.94
7.0.240.0090.01016.04
7.0.230.0090.00915.95
7.0.220.0070.01315.96
7.0.210.0110.00616.00
7.0.200.0180.00916.36
7.0.190.0140.01116.21
7.0.180.0170.01016.36
7.0.170.0160.01016.30
7.0.160.0090.00916.17
7.0.150.0090.00716.34
7.0.140.0110.00816.21
7.0.130.0100.00816.41
7.0.120.0100.00716.39
7.0.110.0060.01316.27
7.0.100.0090.01016.34
7.0.90.0100.00816.33
7.0.80.0070.01016.31
7.0.70.0080.00816.32
7.0.60.0070.01016.32
7.0.50.0080.00916.34
7.0.40.0100.00815.41
7.0.30.0100.00915.27
7.0.20.0090.00815.37
7.0.10.0080.01115.31
7.0.00.0080.01015.25
5.6.400.0080.01515.41
5.6.390.0090.01415.57
5.6.380.0070.01315.02
5.6.370.0090.01115.14
5.6.360.0090.01315.02
5.6.350.0080.01215.11
5.6.340.0080.01215.17
5.6.330.0070.01415.24
5.6.320.0130.01115.08
5.6.310.0090.01515.16
5.6.300.0090.02316.54
5.6.290.0090.02216.65
5.6.280.0080.02116.53
5.6.270.0090.02016.56
5.6.260.0100.02016.52
5.6.250.0070.02416.53
5.6.240.0080.02116.58
5.6.230.0080.02116.63
5.6.220.0060.02516.49
5.6.210.0070.02316.60
5.6.200.0090.02216.65
5.6.190.0090.02016.56
5.6.180.0100.02016.55
5.6.170.0080.02716.56
5.6.160.0080.02016.58
5.6.150.0110.02416.68
5.6.140.0120.02616.50
5.6.130.0110.02016.51
5.6.120.0090.02316.65
5.6.110.0130.03216.65
5.6.100.0080.02216.61
5.6.90.0080.02416.51
5.6.80.0080.03416.21
5.6.70.0090.02216.33
5.6.60.0100.02116.32
5.6.50.0090.02116.49
5.6.40.0060.02416.35
5.6.30.0090.02216.45
5.6.20.0110.01616.48
5.6.10.0070.02616.42
5.6.00.0090.02916.40
5.5.380.0080.02415.08
5.5.370.0100.02015.07
5.5.360.0100.01815.09
5.5.350.0100.02015.16
5.5.340.0070.03015.28
5.5.330.0130.01915.05
5.5.320.0100.02715.26
5.5.310.0080.03115.18
5.5.300.0110.02715.17
5.5.290.0090.02215.22
5.5.280.0090.02715.35
5.5.270.0100.02415.16
5.5.260.0100.02215.23
5.5.250.0080.02315.16
5.5.240.0100.01815.13
5.5.230.0080.02215.08
5.5.220.0140.01515.06
5.5.210.0090.02915.13
5.5.200.0090.02115.04
5.5.190.0090.02615.04
5.5.180.0090.03015.12
5.5.170.0110.01115.53
5.5.160.0060.02514.97
5.5.150.0140.02815.10
5.5.140.0090.02015.18
5.5.130.0120.01814.94
5.5.120.0040.03415.12
5.5.110.0080.02115.16
5.5.100.0060.02315.04
5.5.90.0110.01915.08
5.5.80.0100.01915.14
5.5.70.0070.02215.12
5.5.60.0090.01815.10
5.5.50.0050.02315.13
5.5.40.0100.02515.09
5.5.30.0090.03515.13
5.5.20.0100.01915.04
5.5.10.0100.02215.06
5.5.00.0100.02115.08
5.4.450.0090.02315.58
5.4.440.0090.02115.65
5.4.430.0070.02415.52
5.4.420.0090.01915.55
5.4.410.0060.02315.65
5.4.400.0100.03215.57
5.4.390.0060.02015.53
5.4.380.0080.02015.53
5.4.370.0060.02215.45
5.4.360.0070.02115.50
5.4.350.0070.02115.43
5.4.340.0100.02915.61
5.4.330.0130.00713.76
5.4.320.0070.02015.55
5.4.310.0120.02415.56
5.4.300.0090.03015.48
5.4.290.0120.01815.48
5.4.280.0080.02115.49
5.4.270.0170.01715.55
5.4.260.0090.01815.63
5.4.250.0090.01915.45
5.4.240.0050.02315.63
5.4.230.0130.02015.63
5.4.220.0080.02015.57
5.4.210.0070.02015.56
5.4.200.0090.02515.47
5.4.190.0120.01815.64
5.4.180.0090.01815.57
5.4.170.0060.02215.55
5.4.160.0060.02315.44
5.4.150.0080.01715.52
5.4.140.0050.02415.08
5.4.130.0070.02715.08
5.4.120.0080.02114.99
5.4.110.0050.02114.98
5.4.100.0040.02315.10
5.4.90.0080.01915.04
5.4.80.0050.02615.04
5.4.70.0130.01715.14
5.4.60.0050.02015.01
5.4.50.0080.01915.08
5.4.40.0110.01515.06
5.4.30.0100.02115.01
5.4.20.0090.01815.10
5.4.10.0110.02315.06
5.4.00.0070.01715.11

preferences:
36.83 ms | 403 KiB | 5 Q