3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2022-11-19'); $nextMondayOrThursday = Min( (clone $start)->modify("next monday"), (clone $start)->modify("next thursday") ); echo $nextMondayOrThursday->format('l, d F Y');

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.0070.00718.43
8.3.50.0140.00020.15
8.3.40.0070.00720.21
8.3.30.0040.01118.96
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0060.00326.16
8.2.180.0120.00325.92
8.2.170.0090.00619.04
8.2.160.0130.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00419.79
8.2.110.0090.00322.34
8.2.100.0000.01218.03
8.2.90.0060.00318.03
8.2.80.0040.00419.45
8.2.70.0030.00517.88
8.2.60.0060.00318.05
8.2.50.0030.00518.22
8.2.40.0060.00322.32
8.2.30.0030.00618.23
8.2.20.0070.00020.69
8.2.10.0070.00018.13
8.2.00.0020.00519.18
8.1.280.0150.00025.92
8.1.270.0040.00424.66
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.24
8.1.230.0090.00322.79
8.1.220.0060.00317.80
8.1.210.0030.00518.85
8.1.200.0060.00317.48
8.1.190.0030.00517.60
8.1.180.0040.00418.10
8.1.170.0050.00318.58
8.1.160.0040.00418.87
8.1.150.0060.00318.73
8.1.140.0040.00417.59
8.1.130.0060.00319.41
8.1.120.0100.00517.67
8.1.110.0100.00517.61
8.1.100.0150.00017.61
8.1.90.0090.00617.66
8.1.80.0150.00017.72
8.1.70.0070.00717.70
8.1.60.0060.01317.77
8.1.50.0090.00917.68
8.1.40.0180.00017.82
8.1.30.0130.00417.89
8.1.20.0120.00817.75
8.1.10.0100.01017.61
8.1.00.0160.00417.79
8.0.300.0000.00720.07
8.0.290.0060.00316.88
8.0.280.0050.00318.59
8.0.270.0000.00718.22
8.0.260.0030.00317.19
8.0.250.0080.00817.14
8.0.240.0110.00317.16
8.0.230.0140.00016.96
8.0.220.0000.01516.96
8.0.210.0070.00716.88
8.0.200.0140.00017.00
8.0.190.0160.00017.13
8.0.180.0150.00017.07
8.0.170.0150.00016.96
8.0.160.0150.00016.94
8.0.150.0140.00016.91
8.0.140.0070.00717.00
8.0.130.0110.00416.96
8.0.120.0120.00216.89
8.0.110.0100.00516.89
8.0.100.0110.00616.91
8.0.90.0050.01017.11
8.0.80.0110.00417.00
8.0.70.0040.01116.91
8.0.60.0100.00516.88
8.0.50.0150.00017.00
8.0.30.0090.00616.91
8.0.20.0000.01317.14
8.0.10.0130.00017.04
7.4.330.0040.00814.29
7.4.320.0080.00416.60
7.4.300.0070.00716.46
7.4.290.0080.00416.54
7.4.280.0080.00416.64
7.4.270.0130.00016.61
7.4.260.0140.00016.65
7.4.250.0030.00916.39
7.4.240.0090.00016.47
7.4.230.0120.00016.60
7.4.220.0080.00416.64
7.4.210.0000.01216.31
7.4.200.0040.00816.25
7.4.190.0100.00316.52
7.4.180.0080.00416.39
7.4.160.0060.00616.47
7.4.150.0100.00316.55
7.4.140.0090.00316.55
7.4.130.0040.00716.53
7.4.120.0080.00416.52
7.4.110.0130.00016.34
7.4.100.0050.00816.57
7.4.90.0070.00516.60
7.4.80.0070.00516.45
7.4.70.0110.00016.31
7.4.60.0090.00316.52
7.4.50.0100.00216.13
7.4.40.0110.00016.37
7.4.30.0050.00516.48
7.4.20.0080.00416.59
7.4.10.0100.00316.23
7.4.00.0040.00916.09

preferences:
36.32 ms | 400 KiB | 5 Q