3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new \DatePeriod( new \DateTime('2010-06-01'), new \DateInterval('P1D'), new \DateTime('2010-06-03') ); var_dump($period->recurrences); foreach ($period as $day) { echo $day->format('Y-m-d') . "\n"; } $period = new \DatePeriod( new \DateTime('2010-06-01'), new \DateInterval('P1D'), 1 ); var_dump($period->recurrences); foreach ($period as $day) { echo $day->format('Y-m-d') . "\n"; }

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.00916.63
8.3.60.0030.01318.55
8.3.50.0100.00718.25
8.3.40.0130.00719.15
8.3.30.0140.00418.88
8.3.20.0000.00721.77
8.3.10.0020.00522.09
8.3.00.0040.00423.51
8.2.180.0200.00016.38
8.2.170.0070.00722.96
8.2.160.0070.00719.54
8.2.150.0120.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0040.00421.07
8.2.100.0000.01217.84
8.2.90.0090.00018.09
8.2.80.0050.00519.34
8.2.70.0030.00517.88
8.2.60.0050.00317.73
8.2.50.0030.00618.05
8.2.40.0040.00421.15
8.2.30.0000.00718.20
8.2.20.0050.00318.14
8.2.10.0040.00419.23
8.2.00.0000.00719.51
8.1.280.0110.00425.92
8.1.270.0040.00422.19
8.1.260.0050.00326.35
8.1.250.0110.00728.09
8.1.240.0030.00622.18
8.1.230.0110.00021.03
8.1.220.0040.00417.74
8.1.210.0040.00418.83
8.1.200.0080.00017.50
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0000.00917.62
8.1.160.0050.00318.86
8.1.150.0000.00718.97
8.1.140.0020.00518.97
8.1.130.0070.00017.63
8.1.120.0000.00817.58
8.1.110.0040.00417.51
8.1.100.0020.00517.67
8.1.90.0000.00717.59
8.1.80.0070.00017.67
8.1.70.0000.00717.56
8.1.60.0000.00817.71
8.1.50.0080.00017.68
8.1.40.0080.00017.71
8.1.30.0060.00317.64
8.1.20.0000.00817.66
8.1.10.0040.00417.64
8.1.00.0000.00917.71
8.0.300.0080.00020.14
8.0.290.0070.00017.16
8.0.280.0070.00018.44
8.0.270.0000.00718.15
8.0.260.0000.00717.07
8.0.250.0000.00817.06
8.0.240.0030.00317.15
8.0.230.0040.00417.15
8.0.220.0040.00417.00
8.0.210.0070.00016.96
8.0.200.0000.00717.03
8.0.190.0000.00717.16
8.0.180.0050.00317.03
8.0.170.0030.00617.15
8.0.160.0030.00517.08
8.0.150.0030.00316.98
8.0.140.0000.00717.02
8.0.130.0030.00313.41
8.0.120.0040.00417.08
8.0.110.0040.00417.09
8.0.100.0070.00017.13
8.0.90.0030.00617.17
8.0.80.0120.00317.04
8.0.70.0040.00416.96
8.0.60.0040.00417.17
8.0.50.0080.00016.97
8.0.30.0120.00617.33
8.0.20.0100.01217.28
8.0.10.0040.00417.04
8.0.00.0120.00617.10
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0000.00716.77
7.4.290.0030.00516.65
7.4.280.0030.00416.61
7.4.270.0000.00816.69
7.4.260.0000.00513.27
7.4.250.0030.00316.61
7.4.240.0020.00516.70
7.4.230.0050.00216.57
7.4.220.0030.00316.64
7.4.210.0060.01016.71
7.4.200.0000.00716.77
7.4.130.0090.01116.57
7.4.120.0180.00316.66
7.4.110.0200.00816.79
7.4.100.0160.00716.61
7.4.90.0210.00516.60
7.4.80.0130.01118.03
7.4.70.0210.00716.56
7.4.60.0160.00916.66
7.4.50.0130.01316.74
7.4.40.0140.01316.54
7.4.30.0170.00516.62
7.4.20.0180.00916.64
7.4.10.0200.00716.49
7.4.00.0090.01216.49
7.3.330.0060.00016.58
7.3.320.0000.00713.23
7.3.310.0040.00416.24
7.3.300.0030.00316.29
7.3.290.0080.00816.40
7.3.260.0100.00716.65
7.3.240.0060.01316.55
7.3.230.0180.00716.52
7.3.220.0280.00316.64
7.3.210.0210.00616.63
7.3.200.0100.01616.53
7.3.190.0170.01116.60
7.3.180.0120.01416.54
7.3.170.0220.00916.61
7.3.160.0170.01016.61
7.3.150.0190.01016.47
7.3.140.0170.01116.49
7.3.130.0150.00916.57
7.3.120.0160.01016.48
7.3.110.0170.00916.56
7.3.100.0110.01216.51
7.3.90.0170.00816.36
7.3.80.0150.01116.54
7.3.70.0140.01016.53
7.3.60.0100.01016.53
7.3.50.0190.00716.48
7.3.40.0130.01016.37
7.3.30.0180.00716.41
7.3.20.0120.01416.56
7.3.10.0140.00816.59
7.3.00.0170.00916.53
7.2.340.0280.00416.77
7.2.330.0150.01316.93
7.2.320.0190.00716.85
7.2.310.0160.01016.86
7.2.300.0210.00716.88
7.2.290.0160.01017.01
7.2.280.0190.00716.73
7.2.270.0230.00616.87
7.2.260.0160.00916.92
7.2.250.0150.00916.77
7.2.240.0180.00716.76
7.2.230.0160.00716.78
7.2.220.0190.00716.84
7.2.210.0180.00616.79
7.2.200.0130.01016.84
7.2.190.0140.01216.75
7.2.180.0170.01016.79
7.2.170.0110.01316.81
7.2.160.0180.00916.67
7.2.150.0140.01416.81
7.2.140.0150.01216.82
7.2.130.0290.01016.71
7.2.120.0130.01216.72
7.2.110.0180.00716.78
7.2.100.0170.00616.73
7.2.90.0180.00716.79
7.2.80.0170.00816.74
7.2.70.0180.00616.90
7.2.60.0120.01116.77
7.2.50.0180.00916.76
7.2.40.0200.01116.88
7.2.30.0120.00816.95
7.2.20.0150.00716.79
7.2.10.0170.00816.80
7.2.00.0050.01616.77

preferences:
55.19 ms | 401 KiB | 5 Q