3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sheldon = new DateTime('May 20th, 1980'); $neo = new DateTime('February 6th, 1979'); $today = new DateTimeImmutable(); $oneYearIntoTheFuture = $today->add(new DateInterval('P1Y')); //since birthdays occur every year, the interval is one year $interval = new DateInterval('P1D'); //third argument is the end date, new DateTime() == right now $period = new DatePeriod($neo, $interval, $today); echo $today->format('d-m-Y'), PHP_EOL; echo $oneYearIntoTheFuture->format('d-m-Y'), PHP_EOL; echo PHP_EOL; foreach($period as $dt) { //DateTime objects echo $dt->format('Y-m-d - 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.60.0370.02918.31
8.3.50.0470.01218.32
8.3.40.0390.02218.83
8.3.30.0310.02619.07
8.3.20.0280.00420.34
8.3.10.0150.01521.91
8.3.00.0330.00717.78
8.2.180.0310.01818.41
8.2.170.0550.02422.96
8.2.160.0440.01520.16
8.2.150.0190.00624.18
8.2.140.0220.01524.66
8.2.130.0240.00526.16
8.2.120.0270.01720.56
8.2.110.0170.01722.26
8.2.100.0080.02717.97
8.2.90.0040.01619.17
8.2.80.0080.01117.97
8.2.70.0030.01817.88
8.2.60.0090.01218.00
8.2.50.0160.00418.07
8.2.40.0070.00718.28
8.2.30.0030.01718.22
8.2.20.0170.00318.05
8.2.10.0110.01118.19
8.2.00.0070.00718.06
8.1.280.0280.02825.92
8.1.270.0320.00022.08
8.1.260.0240.00326.35
8.1.250.0290.01828.09
8.1.240.0220.01123.90
8.1.230.0130.02018.97
8.1.220.0070.00717.74
8.1.210.0120.01218.77
8.1.200.0110.01117.48
8.1.190.0130.00517.51
8.1.180.0070.00718.80
8.1.170.0150.00918.50
8.1.160.0030.01022.11
8.1.150.0120.00919.04
8.1.140.0080.01217.65
8.1.130.0080.01117.96
8.1.120.0120.00617.71
8.1.110.0080.01117.74
8.1.100.0170.00617.64
8.1.90.0080.01217.63
8.1.80.0090.01417.72
8.1.70.0110.01117.61
8.1.60.0140.01017.64
8.1.50.0150.00817.71
8.1.40.0070.01917.54
8.1.30.0080.01117.76
8.1.20.0040.01617.66
8.1.10.0080.01617.80
8.1.00.0040.01417.75
8.0.300.0080.01218.77
8.0.290.0040.01517.05
8.0.280.0030.00918.37
8.0.270.0100.01017.29
8.0.260.0120.00917.33
8.0.250.0110.00717.13
8.0.240.0120.01217.04
8.0.230.0040.01516.99
8.0.220.0100.01416.97
8.0.210.0090.01116.95
8.0.200.0060.00616.99
8.0.190.0040.01717.02
8.0.180.0100.01417.08
8.0.170.0110.01117.04
8.0.160.0110.01117.01
8.0.150.0110.00317.08
8.0.140.0090.01517.03
8.0.130.0130.01013.48
8.0.120.0070.01916.92
8.0.110.0040.02116.97
8.0.100.0120.01216.93
8.0.90.0050.01416.96
8.0.80.0450.03516.91
8.0.70.0060.01516.93
8.0.60.0140.01017.04
8.0.50.0060.00616.93
8.0.30.0450.04217.26
8.0.20.0440.04117.41
8.0.10.0070.01717.05
8.0.00.0430.04016.82
7.4.330.0060.01315.22
7.4.320.0120.00916.57
7.4.300.0090.00916.47
7.4.290.0090.01516.52
7.4.280.0130.01316.63
7.4.270.0100.01616.46
7.4.260.0080.01616.58
7.4.250.0120.00916.40
7.4.240.0090.01116.59
7.4.230.0070.01116.65
7.4.220.0260.04616.62
7.4.210.0410.05316.53
7.4.200.0060.01216.61
7.4.160.0330.04916.58
7.4.150.0550.03317.40
7.4.140.0560.05217.86
7.4.130.0460.04216.73
7.4.120.0410.04816.59
7.4.110.1060.05916.64
7.4.100.0480.04216.76
7.4.90.0510.02716.61
7.4.80.0540.04919.39
7.4.70.0070.02816.52
7.4.60.0240.03516.45
7.4.50.0170.01716.58
7.4.40.0730.09216.71
7.4.30.0410.02616.69
7.4.00.0210.02115.01
7.3.330.0040.00713.30
7.3.320.0090.00913.23
7.3.310.0040.01616.37
7.3.300.0040.01616.32
7.3.290.0150.04016.35
7.3.280.0260.04616.40
7.3.270.0530.04017.40
7.3.260.0520.03216.49
7.3.240.0610.05316.68
7.3.230.0180.03716.46
7.3.210.0560.05316.64
7.3.200.0540.02719.39
7.3.190.0510.03616.43
7.3.180.0200.02316.57
7.3.170.0610.06716.57
7.3.160.0370.03016.41
7.2.330.0450.05016.62
7.2.320.0290.04116.71
7.2.310.0510.06216.85
7.2.300.0490.04516.72
7.2.290.0480.04016.53
7.2.00.0100.02019.31
7.1.100.0130.01317.82
7.1.70.0130.00916.97
7.1.60.0170.04019.29
7.1.50.0070.03016.91
7.0.200.0190.00815.30
5.4.370.0830.03319.09
5.4.360.0900.04019.09
5.4.350.0200.03019.25
5.4.340.0070.03318.91
5.4.320.0530.03718.89
5.4.310.1200.03719.24
5.4.300.0770.03319.05
5.4.290.0670.04319.05
5.4.280.0600.03718.76
5.4.270.0070.03319.05
5.4.260.0130.02718.77
5.4.250.0270.03319.07
5.4.240.0670.03019.21
5.4.230.0400.03318.78
5.4.220.0500.03719.06
5.4.210.0300.03318.80
5.4.200.1430.04018.78
5.4.190.0470.03719.12
5.4.180.0700.04318.88
5.4.170.0230.05019.09
5.4.160.0600.03319.05
5.4.150.0600.04018.80
5.4.140.0170.04016.25
5.4.130.0470.04016.61
5.4.120.0870.03716.36
5.4.110.0870.03716.48
5.4.100.0430.03716.25
5.4.90.0430.03716.20
5.4.80.0430.03716.44
5.4.70.0830.03716.09
5.4.60.0600.03316.41
5.4.50.0830.04316.20
5.4.40.0930.06316.28
5.4.30.0030.04016.46
5.4.20.0530.05016.20
5.4.10.1900.03316.04
5.4.00.1770.04015.65

preferences:
53.86 ms | 400 KiB | 5 Q