3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTimeImmutable; $next = new DateTimeImmutable("last day of next week - 4 weekdays"); var_dump($now->format('d.m.Y'), $next->format('d.m.Y'), $next->diff($now)->format('%a'));

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.0180.00016.58
8.3.60.0210.00018.28
8.3.50.0080.01322.05
8.3.40.0060.00918.88
8.3.30.0110.00419.02
8.3.20.0040.00420.21
8.3.10.0000.00821.90
8.3.00.0050.00323.53
8.2.190.0090.00618.56
8.2.180.0110.01125.92
8.2.170.0060.01219.09
8.2.160.0090.00622.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00721.27
8.2.110.0060.00320.99
8.2.100.0040.00717.84
8.2.90.0050.00320.08
8.2.80.0000.00820.52
8.2.70.0050.00317.63
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0040.00418.18
8.2.20.0020.00518.12
8.2.10.0000.00718.12
8.2.00.0070.00018.31
8.1.280.0070.01125.92
8.1.270.0040.00419.00
8.1.260.0080.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.25
8.1.230.0080.00320.70
8.1.220.0000.00817.74
8.1.210.0030.00519.10
8.1.200.0030.00617.60
8.1.190.0030.00517.47
8.1.180.0000.00818.10
8.1.170.0000.00818.57
8.1.160.0000.00718.85
8.1.150.0040.00420.24
8.1.140.0000.00819.54
8.1.130.0000.00719.25
8.1.120.0000.00817.65
8.1.110.0030.00717.68
8.1.100.0000.00817.66
8.1.90.0050.00317.70
8.1.80.0000.00717.49
8.1.70.0040.00417.53
8.1.60.0040.00417.59
8.1.50.0030.00617.63
8.1.40.0060.00317.54
8.1.30.0060.00317.84
8.1.20.0090.00017.78
8.1.10.0050.00317.64
8.1.00.0050.00317.69
8.0.300.0040.00420.08
8.0.290.0000.00717.00
8.0.280.0030.00318.39
8.0.270.0030.00317.00
8.0.260.0030.00317.24
8.0.250.0000.00717.19
8.0.240.0040.00417.21
8.0.230.0030.00617.05
8.0.220.0070.00017.08
8.0.210.0000.00716.98
8.0.200.0000.00617.18
8.0.190.0040.00417.06
8.0.180.0000.00717.17
8.0.170.0040.00417.11
8.0.160.0000.00717.21
8.0.150.0030.00317.00
8.0.140.0030.00317.05
8.0.130.0030.00313.45
8.0.120.0020.00617.04
8.0.110.0040.00416.89
8.0.100.0040.00417.15
8.0.90.0040.00417.01
8.0.80.0070.00716.99
8.0.70.0040.00417.11
8.0.60.0040.00416.95
8.0.50.0050.00317.20
8.0.30.0120.00717.20
8.0.20.0120.01017.40
8.0.10.0000.00717.10
8.0.00.0180.00016.88
7.4.330.0000.00515.55
7.4.320.0030.00316.73
7.4.300.0030.00316.72
7.4.290.0070.00316.65
7.4.280.0050.00316.74
7.4.270.0000.00716.59
7.4.260.0020.00516.59
7.4.250.0000.00816.59
7.4.240.0030.00616.75
7.4.230.0080.00016.74
7.4.220.0090.01716.84
7.4.210.0060.01016.61
7.4.200.0030.00316.54
7.4.160.0140.00516.50
7.4.150.0090.00917.40
7.4.140.0080.01417.86
7.4.130.0090.00816.68
7.4.120.0110.00916.72
7.4.110.0100.00716.59
7.4.100.0130.00416.61
7.4.90.0120.00916.55
7.4.80.0130.01019.39
7.4.70.0080.00816.50
7.4.60.0090.01416.64
7.4.50.0090.00616.66
7.4.40.0100.01316.61
7.4.30.0140.00716.54
7.4.00.0070.01014.95
7.3.330.0040.00413.25
7.3.320.0030.00313.01
7.3.310.0070.00016.20
7.3.300.0000.00716.25
7.3.290.0060.00816.31
7.3.280.0100.01016.35
7.3.270.0130.00317.40
7.3.260.0150.00316.47
7.3.250.0060.01116.44
7.3.240.0130.00616.52
7.3.230.0110.00516.39
7.3.210.0170.00016.23
7.3.200.0070.01016.75
7.3.190.0050.01416.50
7.3.180.0060.01316.50
7.3.170.0030.01916.60
7.3.160.0140.00416.57
7.2.330.0070.01116.83
7.2.320.0060.01516.70
7.2.310.0120.00416.67
7.2.300.0120.01416.50
7.2.290.0090.01016.91
7.2.60.0070.00716.85
7.2.00.0160.00319.32
7.1.200.0040.01116.01
7.1.100.0000.01318.32
7.1.70.0000.00817.41
7.1.60.0030.01017.18
7.1.50.0070.01317.04
7.1.30.0330.07736.48
7.1.20.0330.07736.54
7.1.10.0230.07320.42
7.1.00.0270.07320.57
7.0.200.0070.01016.59
7.0.170.0200.07320.14
7.0.160.0230.06720.18
7.0.150.0230.05320.06
7.0.140.0200.07019.99
7.0.130.0200.07320.20
7.0.120.0500.07020.13
7.0.110.7370.06020.02
7.0.100.6530.05020.16
7.0.90.5000.06720.12
7.0.80.0070.08720.13
7.0.70.5200.07720.19
7.0.60.0170.07320.07
7.0.50.4400.06719.99
7.0.40.4000.06320.05
7.0.30.2900.05020.13
7.0.20.3770.06720.13
7.0.10.3730.06320.00
7.0.00.2900.06020.03

preferences:
30.3 ms | 401 KiB | 5 Q