3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ListA implements IteratorAggregate, ArrayAccess { public function getIterator() { return new ArrayIterator(['abc','def','dfgh']); } } $a = new ListA; echo $a[2];

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.0140.00316.63
8.3.50.0110.00421.16
8.3.40.0070.00718.54
8.3.30.0090.00618.58
8.3.20.0040.00420.28
8.3.10.0040.00421.73
8.3.00.0040.00423.53
8.2.180.0110.01118.54
8.2.170.0150.00622.96
8.2.160.0110.00320.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00421.13
8.2.120.0000.00826.35
8.2.110.0060.00321.12
8.2.100.0000.01217.80
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00918.09
8.2.40.0080.00021.97
8.2.30.0040.00419.36
8.2.20.0040.00417.68
8.2.10.0000.00717.97
8.2.00.0030.00617.87
8.1.280.0090.00625.92
8.1.270.0070.00022.04
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00319.46
8.1.230.0070.00317.76
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0000.00720.70
8.1.150.0000.00820.55
8.1.140.0050.00319.48
8.1.130.0070.00017.65
8.1.120.0000.00717.46
8.1.110.0060.00317.40
8.1.100.0040.00417.36
8.1.90.0050.00217.39
8.1.80.0050.00517.29
8.1.70.0030.00317.29
8.1.60.0030.00517.52
8.1.50.0080.00017.51
8.1.40.0070.00817.46
8.1.30.0000.00817.48
8.1.20.0000.00717.48
8.1.10.0060.00317.39
8.1.00.0050.00217.33
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.33
8.0.270.0000.00717.21
8.0.260.0030.00317.24
8.0.250.0070.00016.85
8.0.240.0030.00616.99
8.0.230.0030.00516.98
8.0.220.0040.00416.92
8.0.210.0000.00716.86
8.0.200.0030.00316.86
8.0.190.0040.00416.84
8.0.180.0000.00716.79
8.0.170.0060.00316.82
8.0.160.0030.00316.77
8.0.150.0000.00716.84
8.0.140.0000.00716.73
8.0.130.0060.00013.27
8.0.120.0000.00716.73
8.0.110.0040.00416.90
8.0.100.0070.00016.90
8.0.90.0040.00416.71
8.0.80.0070.00716.95
8.0.70.0000.00816.90
8.0.60.0040.00416.90
8.0.50.0000.00716.79
8.0.30.0060.01217.00
8.0.20.0110.00717.40
8.0.10.0040.00416.99
8.0.00.0080.01316.68
7.4.330.0030.00316.79
7.4.320.0030.00316.53
7.4.300.0030.00516.57
7.4.290.0000.00916.38
7.4.280.0040.00416.51
7.4.270.0030.00316.52
7.4.260.0000.00716.43
7.4.250.0020.00516.51
7.4.240.0040.00416.54
7.4.230.0030.00316.63
7.4.220.0130.00616.47
7.4.210.0040.01116.49
7.4.200.0000.00716.37
7.4.160.0100.00616.43
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0100.01316.41
7.4.120.0120.00816.48
7.4.110.0200.00016.31
7.4.100.0030.01316.50
7.4.90.0060.01216.43
7.4.80.0070.01319.39
7.4.70.0110.00616.25
7.4.60.0090.00916.66
7.4.50.0080.00916.35
7.4.40.0030.01216.29
7.4.30.0100.01016.66
7.4.00.0080.00814.89
7.3.330.0000.00613.24
7.3.320.0000.00513.02
7.3.310.0040.00416.12
7.3.300.0000.00716.14
7.3.290.0070.00916.22
7.3.280.0130.00216.22
7.3.270.0150.00317.40
7.3.260.0130.00316.27
7.3.250.0100.00816.30
7.3.240.0080.00816.40
7.3.230.0140.00416.39
7.3.210.0130.01016.46
7.3.200.0090.00919.39
7.3.190.0140.00416.33
7.3.180.0100.00616.25
7.3.170.0110.00516.42
7.3.160.0030.01316.29
7.3.120.0070.01014.91
7.3.110.0090.00914.50
7.3.100.0110.00314.98
7.3.90.0040.00814.72
7.3.80.0070.00714.88
7.3.70.0060.00614.58
7.3.60.0050.00314.42
7.3.50.0030.01014.56
7.3.40.0030.01514.73
7.3.30.0000.00914.45
7.3.20.0040.01116.70
7.3.10.0070.00716.57
7.3.00.0060.00316.54
7.2.330.0160.00316.60
7.2.320.0150.00416.33
7.2.310.0100.00716.51
7.2.300.0150.00916.36
7.2.290.0090.01216.37
7.2.250.0160.00315.08
7.2.240.0090.00915.00
7.2.230.0060.00914.63
7.2.220.0090.00614.82
7.2.210.0060.01014.89
7.2.200.0070.00414.95
7.2.190.0060.00914.87
7.2.180.0100.00315.11
7.2.170.0090.00314.99
7.2.60.0060.00916.67
7.2.00.0030.00919.41
7.1.330.0070.00715.73
7.1.320.0070.00715.68
7.1.310.0100.00715.39
7.1.300.0100.00015.69
7.1.290.0070.00715.62
7.1.280.0030.00615.63
7.1.270.0070.00415.78
7.1.260.0030.01015.35
7.1.200.0060.00615.80
7.1.100.0150.00017.92
7.1.70.0030.00917.00
7.1.60.0090.00619.40
7.1.50.0180.01834.27
7.1.00.0070.07322.37
7.0.200.0030.00716.70
7.0.60.0200.04319.82
7.0.50.0100.07717.92
7.0.40.0070.05020.15
7.0.30.0370.07020.06
7.0.20.0300.05720.30
7.0.10.0070.04020.12
7.0.00.0130.08020.06
5.6.280.0030.03321.09
5.6.210.0070.07720.61
5.6.200.0070.03718.29
5.6.190.0170.06720.57
5.6.180.0230.08020.55
5.6.170.0370.05020.52
5.6.160.0100.05720.45
5.6.150.0170.03718.21
5.6.140.0130.06318.16
5.6.130.0030.06718.18
5.6.120.0170.06021.12
5.6.110.0030.07021.00
5.6.100.0170.07021.04
5.6.90.0130.07320.97
5.6.80.0070.08020.49
5.5.350.4330.04020.31
5.5.340.0100.06017.99
5.5.330.0030.04320.27
5.5.320.0470.06720.41
5.5.310.0170.04720.35
5.5.300.0030.04017.98
5.5.290.0030.08017.96
5.5.280.0070.03720.88
5.5.270.0030.08020.77
5.5.260.0130.05320.89
5.5.250.0170.07320.47
5.5.240.0230.07720.16

preferences:
46.28 ms | 401 KiB | 5 Q