3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayFetch = array(); for ($i = 1; $i <= 1000000;$i++) { $arrayFetch = $i; } printr($arrayFetch);

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.0060.01618.80
8.3.30.0040.01818.70
8.3.20.0040.00820.33
8.3.10.0030.00923.61
8.3.00.0040.00823.66
8.2.170.0070.02022.96
8.2.160.0090.01220.27
8.2.150.0080.00424.18
8.2.140.0080.00424.66
8.2.130.0030.00919.77
8.2.120.0040.00826.35
8.2.110.0060.01322.25
8.2.100.0000.01617.93
8.2.90.0070.00719.23
8.2.80.0000.01317.97
8.2.70.0030.01117.63
8.2.60.0030.01017.92
8.2.50.0070.00718.07
8.2.40.0060.00822.20
8.2.30.0000.01319.36
8.2.20.0060.00617.70
8.2.10.0030.01018.10
8.2.00.0030.01217.92
8.1.270.0080.00323.99
8.1.260.0060.00628.09
8.1.250.0060.00628.09
8.1.240.0060.01323.88
8.1.230.0030.01419.16
8.1.220.0030.01017.74
8.1.210.0030.01218.77
8.1.200.0040.01117.13
8.1.190.0030.01217.23
8.1.180.0060.00618.10
8.1.170.0030.01018.37
8.1.160.0030.00920.60
8.1.150.0000.01318.81
8.1.140.0030.01019.49
8.1.130.0030.01017.63
8.1.120.0030.00917.37
8.1.110.0000.01317.42
8.1.100.0060.00617.37
8.1.90.0000.01317.39
8.1.80.0000.01517.42
8.1.70.0030.00917.30
8.1.60.0030.01417.52
8.1.50.0030.01617.50
8.1.40.0060.01217.40
8.1.30.0030.01617.54
8.1.20.0030.01617.65
8.1.10.0070.01117.54
8.1.00.0030.01617.51
8.0.300.0090.00318.77
8.0.290.0030.01016.75
8.0.280.0030.00918.28
8.0.270.0000.01217.18
8.0.260.0030.00917.13
8.0.250.0030.00916.93
8.0.240.0040.00816.88
8.0.230.0030.00916.93
8.0.220.0070.00716.79
8.0.210.0060.00616.87
8.0.200.0000.01116.80
8.0.190.0060.01216.88
8.0.180.0030.01416.84
8.0.170.0030.01616.80
8.0.160.0040.01416.92
8.0.150.0070.01116.89
8.0.140.0000.01716.85
8.0.130.0000.01613.33
8.0.120.0060.01216.80
8.0.110.0000.01816.78
8.0.100.0070.01116.71
8.0.90.0000.01816.68
8.0.80.0120.02216.76
8.0.70.0030.01716.84
8.0.60.0070.01016.91
8.0.50.0000.01816.86
8.0.30.0130.01516.97
8.0.20.0150.01517.40
8.0.10.0030.01417.02
8.0.00.0070.02116.68
7.4.330.0000.01116.70
7.4.320.0070.00716.48
7.4.300.0030.01016.48
7.4.290.0090.01216.43
7.4.280.0070.01816.43
7.4.270.0030.01716.51
7.4.260.0030.01916.54
7.4.250.0030.01716.47
7.4.240.0050.01616.44
7.4.230.0060.01516.39
7.4.220.0070.02416.62
7.4.210.0080.02116.47
7.4.200.0000.02016.52
7.4.160.0100.02916.48
7.4.150.0100.02017.40
7.4.140.0170.02517.86
7.4.130.0120.01916.48
7.4.120.0100.02116.38
7.4.110.0090.02216.61
7.4.100.0090.02216.38
7.4.90.0110.03016.70
7.4.80.0100.02119.39
7.4.70.0160.02616.50
7.4.60.0040.02516.44
7.4.50.0070.01716.55
7.4.40.0150.01916.66
7.4.30.0100.02016.59
7.4.00.0130.01315.12
7.3.330.0030.01513.30
7.3.320.0000.01813.12
7.3.310.0040.01616.47
7.3.300.0000.01916.39
7.3.290.0030.01716.42
7.3.280.0050.03116.43
7.3.270.0070.02617.40
7.3.260.0100.03016.42
7.3.240.0150.02516.50
7.3.230.0040.02916.41
7.3.210.0030.04116.42
7.3.200.0120.03319.39
7.3.190.0100.02916.61
7.3.180.0120.02516.56
7.3.170.0040.02816.59
7.3.160.0070.02516.34
7.3.10.0040.02216.59
7.3.00.0100.02716.06
7.2.330.0150.03016.38
7.2.320.0030.03216.74
7.2.310.0130.02216.29
7.2.300.0100.02616.36
7.2.290.0070.02716.61
7.2.130.0090.02116.42
7.2.120.0110.02816.71
7.2.110.0030.02416.57
7.2.100.0100.02516.25
7.2.90.0070.03416.61
7.2.80.0070.02816.37
7.2.70.0160.02316.66
7.2.60.0030.02816.55
7.2.50.0100.02416.13
7.2.40.0110.03216.52
7.2.30.0030.03216.48
7.2.20.0040.02216.55
7.2.10.0060.02216.32
7.2.00.0090.02217.98
7.1.250.0070.05115.62
7.1.200.0150.02115.75
7.1.100.0000.03118.07
7.1.70.0000.02117.10
7.1.60.0090.04119.20
7.1.50.0100.03916.63
7.1.00.0070.09322.57
7.0.200.0030.01916.43
7.0.60.0130.04021.72
7.0.50.0000.08317.82
7.0.40.0070.10020.05
7.0.30.0230.07720.02
7.0.20.0270.07320.02
7.0.10.0030.08720.18
7.0.00.0070.05320.16
5.6.280.0030.08321.09
5.6.210.0100.12720.50
5.6.200.0100.07718.21
5.6.190.0130.10020.41
5.6.180.0530.11320.63
5.6.170.0230.08020.47
5.6.160.0070.12020.61
5.6.150.0030.14318.19
5.6.140.0030.09718.21
5.6.130.0070.12718.14
5.6.120.0030.08021.07
5.6.110.0030.14320.97
5.6.100.0070.12321.08
5.6.90.0130.13021.01
5.6.80.0000.13320.38
5.5.350.0000.14020.39
5.5.340.0030.13717.92
5.5.330.0130.07320.15
5.5.320.0270.07720.24
5.5.310.0200.07720.12
5.5.300.0030.12717.94
5.5.290.0000.08317.88
5.5.280.0070.07720.87
5.5.270.0070.10020.79
5.5.260.0100.14020.76
5.5.250.0030.08020.68
5.5.240.0200.12020.12

preferences:
49.03 ms | 400 KiB | 5 Q