3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooIterator extends ArrayIterator{ function __construct(){ throw new Exception; } } class Foo implements IteratorAggregate{ function getIterator(){ return new FooIterator(); } } function baz(){ $x = new Foo; foreach($x as $y => $z); } function bar(){ baz(); } function rofl(){ bar(); } rofl();

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.70.0090.00616.38
8.3.60.0030.01416.88
8.3.50.0090.01621.08
8.3.40.0150.00318.83
8.3.30.0090.00918.54
8.3.20.0080.00020.29
8.3.10.0050.00323.70
8.3.00.0040.00419.67
8.2.180.0040.01218.50
8.2.170.0090.00622.96
8.2.160.0000.01520.18
8.2.150.0070.00024.18
8.2.140.0110.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.75
8.2.110.0100.00022.13
8.2.100.0110.00017.63
8.2.90.0000.00719.11
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00419.35
8.2.30.0040.00419.74
8.2.20.0000.00917.64
8.2.10.0050.00217.93
8.2.00.0000.00717.93
8.1.280.0040.01125.92
8.1.270.0030.00620.25
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.44
8.1.230.0060.00617.48
8.1.220.0050.00317.77
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0050.00317.34
8.1.180.0030.00518.10
8.1.170.0030.00618.57
8.1.160.0000.00721.95
8.1.150.0070.00018.93
8.1.140.0080.00017.37
8.1.130.0040.00417.68
8.1.120.0070.00017.45
8.1.110.0040.00417.47
8.1.100.0040.00417.35
8.1.90.0050.00217.33
8.1.80.0040.00517.46
8.1.70.0030.00317.47
8.1.60.0030.00617.59
8.1.50.0000.00817.52
8.1.40.0030.00617.51
8.1.30.0090.00017.65
8.1.20.0000.00717.49
8.1.10.0060.00317.46
8.1.00.0030.00617.57
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0000.00717.26
8.0.260.0000.00617.17
8.0.250.0030.00517.00
8.0.240.0050.00217.01
8.0.230.0080.00316.97
8.0.220.0000.00716.93
8.0.210.0000.00716.89
8.0.200.0020.00517.00
8.0.190.0040.00416.94
8.0.180.0040.00416.94
8.0.170.0040.00416.92
8.0.160.0040.00316.86
8.0.150.0040.00416.79
8.0.140.0040.00416.79
8.0.130.0060.00013.32
8.0.120.0040.00416.75
8.0.110.0040.00416.91
8.0.100.0040.00416.95
8.0.90.0040.00416.86
8.0.80.0070.00716.91
8.0.70.0040.00416.85
8.0.60.0030.00416.83
8.0.50.0040.00416.84
8.0.30.0110.01017.01
8.0.20.0160.01117.40
8.0.10.0040.00416.89
8.0.00.0100.01016.72
7.4.330.0030.00315.08
7.4.320.0000.00716.52
7.4.300.0000.00716.65
7.4.290.0050.00216.47
7.4.280.0050.00316.50
7.4.270.0080.00016.52
7.4.260.0050.00216.61
7.4.250.0000.00716.55
7.4.240.0030.00316.63
7.4.230.0030.00316.45
7.4.220.0110.01216.63
7.4.210.0040.01116.45
7.4.200.0000.00716.60
7.4.160.0120.00316.53
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0140.00916.58
7.4.120.0100.00816.56
7.4.110.0000.01716.57
7.4.100.0120.00416.57
7.4.90.0080.00816.73
7.4.80.0170.00019.39
7.4.70.0170.00016.55
7.4.60.0100.00716.57
7.4.50.0060.00316.72
7.4.40.0090.00916.64
7.4.30.0090.00916.53
7.4.00.0060.00914.84
7.3.330.0000.00513.35
7.3.320.0000.00713.24
7.3.310.0030.00316.27
7.3.300.0070.00016.32
7.3.290.0060.00916.31
7.3.280.0080.01216.37
7.3.270.0110.00717.40
7.3.260.0100.00716.67
7.3.250.0040.01316.42
7.3.240.0080.00916.57
7.3.230.0100.00716.42
7.3.210.0100.00616.59
7.3.200.0070.01016.71
7.3.190.0170.00016.37
7.3.180.0070.01016.50
7.3.170.0030.01316.41
7.3.160.0080.00816.59
7.2.330.0120.00616.78
7.2.320.0090.00916.70
7.2.310.0060.01316.76
7.2.300.0110.00616.63
7.2.290.0070.01016.66
7.2.80.0120.00416.45
7.2.60.0030.01216.64
7.2.00.0000.01119.21
7.1.200.0120.00315.64
7.1.100.0060.00618.11
7.1.70.0040.00416.97
7.1.60.0150.00319.17
7.1.50.0270.01034.65
7.1.00.0000.08022.51
7.0.200.0040.00416.91
7.0.60.0070.07719.97
7.0.50.0030.04017.88
7.0.40.0030.07019.96
7.0.30.0270.04320.45
7.0.20.0270.06020.26
7.0.10.0100.05320.12
7.0.00.0100.05320.05
5.6.280.0030.06021.04
5.6.210.0100.07720.61
5.6.200.0100.05018.20
5.6.190.0030.05320.77
5.6.180.0300.08020.66
5.6.170.0300.07720.52
5.6.160.0100.08320.61
5.6.150.0000.07018.23
5.6.140.0070.05018.25
5.6.130.0130.07018.18
5.6.120.0100.04721.03
5.6.110.0100.03721.01
5.6.100.0070.04021.00
5.6.90.0170.07021.09
5.6.80.0070.04320.38
5.6.70.4270.04020.49
5.5.350.0000.05320.42
5.5.340.0130.03318.08
5.5.330.0170.07720.25
5.5.320.0370.04020.42
5.5.310.0400.08020.26
5.5.300.0000.04317.98
5.5.290.0070.07017.92
5.5.280.0100.08320.90
5.5.270.0000.09320.74
5.5.260.0030.04720.90
5.5.250.0130.06320.59
5.5.240.0030.08020.17
5.4.450.0670.06019.41
5.4.440.0730.05319.34
5.4.430.0670.05719.57
5.4.420.0770.06719.38
5.4.410.0770.05719.44
5.4.400.0770.05019.20
5.4.390.0670.06019.01
5.4.380.0970.08019.21
5.4.370.0700.05319.07
5.4.360.0670.05719.09
5.4.350.0830.05718.83
5.4.340.0930.04719.03
5.4.320.0830.06019.07
5.4.310.0900.04719.03
5.4.300.0930.04719.21
5.4.290.0770.06319.08
5.4.280.0470.05019.27
5.4.270.0030.05718.82
5.4.260.0100.05018.92
5.4.250.0070.05319.05
5.4.240.0630.05018.82
5.4.230.0730.05319.08
5.4.220.0670.05719.27
5.4.210.0670.05319.08
5.4.200.0700.04719.30
5.4.190.0700.05019.07
5.4.180.0830.04018.82
5.4.170.0770.04719.30
5.4.160.0800.04719.05
5.4.150.0730.07019.20
5.4.140.0730.04316.50
5.4.130.0900.04716.38
5.4.120.0900.04716.59
5.4.110.0870.05016.59
5.4.100.0830.05316.61
5.4.90.0830.05316.42
5.4.80.0870.04716.62
5.4.70.0130.03316.49
5.4.60.0200.07316.27
5.4.50.0100.07016.52
5.4.40.0070.07316.43
5.4.30.0070.05716.50
5.4.20.0070.06716.23

preferences:
51.91 ms | 401 KiB | 5 Q