3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new DateTimeImmutable('2020-07-19 18:30:00', new DateTimeZone('Europe/Berlin')); $dt2 = new DateTimeImmutable('2020-07-19 16:30:00', new DateTimeZone('UTC')); print_r($dt1->diff($dt2));

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.0110.01118.43
8.3.50.0030.01016.21
8.3.40.0120.00618.67
8.3.30.0100.01018.84
8.3.20.0090.00523.92
8.3.10.0060.00724.14
8.3.00.0050.00923.34
8.2.180.0100.00725.92
8.2.170.0060.00918.79
8.2.160.0090.00622.96
8.2.150.0060.00823.34
8.2.140.0110.00323.36
8.2.130.0110.00324.09
8.2.120.0090.00520.98
8.2.110.0060.01021.60
8.2.100.0110.00519.30
8.2.90.0080.00719.36
8.2.80.0050.00920.06
8.2.70.0110.00319.12
8.2.60.0100.00419.28
8.2.50.0110.00419.32
8.2.40.0080.00819.36
8.2.30.0070.00719.26
8.2.20.0060.00619.29
8.2.10.0070.00519.92
8.2.00.0090.00719.18
8.1.280.0140.00425.92
8.1.270.0110.00923.10
8.1.260.0060.00625.06
8.1.250.0110.00724.46
8.1.240.0110.00321.24
8.1.230.0080.00620.80
8.1.220.0070.00819.23
8.1.210.0130.00219.64
8.1.200.0140.00618.84
8.1.190.0100.00518.97
8.1.180.0100.00619.15
8.1.170.0080.00419.59
8.1.160.0070.00619.66
8.1.150.0100.00719.20
8.1.140.0070.00519.67
8.1.130.0110.00418.61
8.1.120.0060.00818.62
8.1.110.0060.00718.59
8.1.100.0090.00718.95
8.1.90.0110.00718.65
8.1.80.0080.00618.87
8.1.70.0060.00618.25
8.1.60.0080.00518.03
8.1.50.0080.00718.65
8.1.40.0100.00518.65
8.1.30.0080.00718.67
8.1.20.0080.00618.99
8.1.10.0080.00618.62
8.1.00.0100.00719.16
8.0.300.0110.00219.91
8.0.290.0150.00417.36
8.0.280.0100.00918.12
8.0.270.0100.00118.97
8.0.260.0100.00517.58
8.0.250.0110.00417.64
8.0.240.0140.00317.57
8.0.230.0120.00417.54
8.0.220.0060.00717.59
8.0.210.0130.00417.55
8.0.200.0100.00617.59
8.0.190.0090.00617.42
8.0.180.0090.00518.01
8.0.170.0120.00417.57
8.0.160.0070.00518.08
8.0.150.0110.00517.58
8.0.140.0120.00317.57
8.0.130.0110.00616.69
8.0.120.0130.00517.58
8.0.110.0090.00318.00
8.0.100.0100.00517.55
8.0.90.0110.00517.48
8.0.80.0090.00617.32
8.0.70.0080.00318.01
8.0.60.0110.00417.58
8.0.50.0160.00217.60
8.0.30.0070.00617.99
8.0.20.0070.00518.13
8.0.10.0080.00617.66
8.0.00.0110.00519.58
7.4.330.0080.00316.22
7.4.320.0110.00617.27
7.4.300.0120.00517.29
7.4.290.0130.00617.32
7.4.280.0140.00517.35
7.4.270.0140.00517.28
7.4.260.0160.00416.48
7.4.250.0160.00617.29
7.4.240.0140.00617.28
7.4.230.0150.00617.24
7.4.220.0120.00617.24
7.4.210.0130.00617.26
7.4.200.0140.00417.28
7.4.190.0130.00617.34
7.4.180.0120.00517.33
7.4.160.0120.00717.25
7.4.150.0130.00517.32
7.4.140.0130.00317.24
7.4.130.0120.00417.23
7.4.120.0110.00617.16
7.4.110.0100.00617.20
7.4.100.0130.00317.36
7.4.90.0110.00517.20
7.4.80.0100.00617.22
7.4.70.0130.00517.21
7.4.60.0130.00717.15
7.4.50.0150.00517.14
7.4.40.0130.00517.07
7.4.30.0130.00617.23
7.4.20.0120.00617.17
7.4.10.0120.00617.24
7.4.00.0120.00717.22
7.3.330.0150.00417.12
7.3.320.0110.00816.39
7.3.310.0140.00417.04
7.3.300.0130.00517.18
7.3.290.0120.00617.11
7.3.280.0130.00417.05
7.3.270.0150.00217.06
7.3.260.0130.00517.04
7.3.250.0120.00517.10
7.3.240.0110.00517.15
7.3.230.0120.00517.07
7.3.220.0120.00517.03
7.3.210.0100.00717.07
7.3.200.0120.00717.04
7.3.190.0130.00417.02
7.3.180.0160.00317.08
7.3.170.0120.00517.26
7.3.160.0140.00417.03
7.3.150.0120.00716.94
7.3.140.0160.00216.96
7.3.130.0090.00817.16
7.3.120.0110.00517.21
7.3.110.0100.00517.17
7.3.100.0150.00416.98
7.3.90.0160.00417.21
7.3.80.0110.00616.92
7.3.70.0130.00317.12
7.3.60.0110.00517.37
7.3.50.0100.00717.20
7.3.40.0120.00517.29
7.3.30.0140.00317.09
7.3.20.0140.00417.64
7.3.10.0110.00617.62
7.3.00.0160.00417.66

preferences:
38.33 ms | 400 KiB | 5 Q