3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** @implements IteratorAggregate<DateTimeInterface> */ class MyDatePeriod extends DatePeriod implements IteratorAggregate { public function getIterator(): self { return $this; } } function getDatePeriod(string $period): DatePeriod { return new MyDatePeriod($period); } $datePeriod = getDatePeriod("R4/2012-07-01T00:00:00Z/P7D"); if ($datePeriod instanceof IteratorAggregate) { $datePeriod->getIterator(); }

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.5.00.0110.00924.55
8.4.150.0020.00114.05
8.4.140.0140.00717.42
8.4.130.0100.00717.62
8.4.120.0100.01020.70
8.4.110.0130.01018.79
8.4.100.0100.01019.10
8.4.90.0140.00620.66
8.4.80.0110.01019.02
8.4.70.0110.01018.89
8.4.60.0130.00618.96
8.4.50.0130.00718.47
8.4.40.0060.01218.70
8.4.30.0210.00020.52
8.4.20.0100.01017.63
8.4.10.0060.00321.70
8.3.280.0010.00114.05
8.3.270.0090.01016.80
8.3.260.0050.00416.79
8.3.250.0120.00616.82
8.3.240.0130.00516.67
8.3.230.0140.00616.73
8.3.220.0050.00318.70
8.3.210.0050.00316.79
8.3.200.0050.00416.55
8.3.190.0120.00616.98
8.3.180.0120.00718.99
8.3.170.0100.01016.66
8.3.160.0040.01417.20
8.3.150.0110.00717.12
8.3.140.0080.00018.94
8.3.130.0030.00616.80
8.3.120.0000.00919.01
8.3.110.0030.00620.94
8.3.100.0000.00924.06
8.3.90.0030.00526.77
8.3.80.0030.00616.75
8.3.70.0110.00716.63
8.3.60.0120.00316.63
8.3.50.0170.00320.25
8.3.40.0070.00721.77
8.3.30.0120.00318.38
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0030.00626.16
8.2.290.0100.00920.39
8.2.280.0120.00619.84
8.2.270.0110.00716.43
8.2.260.0140.00316.63
8.2.250.0040.00416.36
8.2.240.0090.00616.91
8.2.230.0030.00522.58
8.2.220.0030.00537.54
8.2.210.0110.00326.77
8.2.200.0030.00618.29
8.2.190.0040.01116.58
8.2.180.0140.00025.92
8.2.170.0140.00718.75
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00426.16
8.2.110.0060.00320.52
8.2.100.0090.00317.78
8.2.90.0050.00317.63
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0050.00318.09
8.2.50.0000.00818.10
8.2.40.0040.00419.38
8.2.30.0040.00417.95
8.2.20.0040.00420.30
8.2.10.0000.00717.99
8.2.00.0070.00019.23
8.1.330.0100.00815.94
8.1.320.0110.00915.98
8.1.310.0190.00016.03
8.1.300.0080.00018.41
8.1.290.0040.00430.84
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00420.98
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0040.00420.68
8.1.200.0040.00417.22
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0060.00318.72
8.1.160.0040.00418.80
8.1.150.0040.00418.53
8.1.140.0030.00617.38
8.1.130.0000.00718.82
8.1.120.0070.00017.43
8.1.110.0040.00417.34
8.1.100.0000.00717.44
8.1.90.0020.00517.29
8.1.80.0080.00017.35
8.1.70.0030.00616.94
8.1.60.0100.00817.12
8.1.50.0130.00316.86
8.1.40.0040.01116.88
8.1.30.0110.00517.23
8.1.20.0150.00017.09
8.1.10.0090.00417.08
8.1.00.0140.00416.69
8.0.300.0070.00020.09
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0030.00316.81
8.0.260.0050.00218.36
8.0.250.0030.00316.84
8.0.240.0000.00716.94
8.0.230.0000.00916.94
8.0.220.0000.00716.89
8.0.210.0080.00716.19
8.0.200.0100.00316.60
8.0.190.0080.00616.34
8.0.180.0080.00616.47
8.0.170.0100.00316.28
8.0.160.0090.00416.59
8.0.150.0100.00316.45
8.0.140.0040.00816.05
8.0.130.0090.00416.31
8.0.120.0120.00216.64
8.0.110.0080.00616.32
8.0.100.0000.01116.45
8.0.90.0060.00916.57
8.0.80.0000.01316.87
8.0.70.0100.00316.70
8.0.60.0120.00216.27
8.0.50.0140.00016.41
8.0.30.0140.00016.49
8.0.20.0080.00716.50
8.0.10.0080.00516.44
7.4.330.0030.00315.55
7.4.320.0000.00716.52
7.4.300.0160.00016.00
7.4.290.0050.00816.35
7.4.280.0090.00416.04
7.4.270.0070.00316.09
7.4.260.0060.00616.20
7.4.250.0090.00416.20
7.4.240.0040.00415.85
7.4.230.0030.00616.25
7.4.220.0090.00316.14
7.4.210.0080.00416.10
7.4.200.0150.00016.47
7.4.190.0030.00915.71
7.4.180.0080.00016.05
7.4.160.0050.00216.11
7.4.150.0050.00416.09
7.4.140.0070.00416.19
7.4.130.0030.00916.33
7.4.120.0130.00016.28
7.4.110.0090.00216.21
7.4.100.0060.00816.16
7.4.90.0060.00915.88
7.4.80.0120.00016.16
7.4.70.0000.01016.14
7.4.60.0100.00316.11
7.4.50.0080.00016.09
7.4.40.0000.01215.98
7.4.30.0080.00316.09
7.4.20.0050.01016.00
7.4.10.0090.00516.14
7.4.00.0040.00816.37

preferences:
41.51 ms | 403 KiB | 5 Q