3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('America/New_York'); $from = new DateTime('2019-06-01T00:00:00', $tz); $from = $from->setTimezone(new DateTimeZone('UTC')); var_dump($from); $to = new DateTime('2019-10-01T00:00:00', $tz); $to = $to->setTimezone(new DateTimeZone('UTC')); var_dump($to); $tz = new DateTimeZone('Asia/Tokyo'); $from = new DateTime('2019-06-01T00:00:00', $tz); $from = $from->setTimezone(new DateTimeZone('UTC')); var_dump($from); $to = new DateTime('2019-10-01T00:00:00', $tz); $to = $to->setTimezone(new DateTimeZone('UTC')); var_dump($to);

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.00716.75
8.3.50.0110.00416.55
8.3.40.0110.00719.19
8.3.30.0070.00718.73
8.3.20.0080.00021.89
8.3.10.0080.00021.89
8.3.00.0050.00323.50
8.2.180.0120.00316.61
8.2.170.0090.00622.96
8.2.160.0030.01021.01
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0000.00922.27
8.2.100.0070.00417.84
8.2.90.0050.00318.03
8.2.80.0000.00919.95
8.2.70.0060.00317.75
8.2.60.0030.00517.73
8.2.50.0030.00517.75
8.2.40.0000.00818.08
8.2.30.0020.00518.14
8.2.20.0040.00418.22
8.2.10.0040.00419.40
8.2.00.0000.00719.27
8.1.280.0120.00625.92
8.1.270.0090.00023.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.68
8.1.230.0120.00022.11
8.1.220.0090.00017.78
8.1.210.0000.00818.84
8.1.200.0040.00417.35
8.1.190.0140.00017.10
8.1.180.0000.00818.10
8.1.170.0060.00317.65
8.1.160.0000.00718.99
8.1.150.0000.00818.99
8.1.140.0050.00218.94
8.1.130.0040.00417.71
8.1.120.0000.00817.72
8.1.110.0000.00717.74
8.1.100.0000.00717.71
8.1.90.0040.00417.60
8.1.80.0060.00317.66
8.1.70.0000.00717.55
8.1.60.0060.00317.75
8.1.50.0040.00417.56
8.1.40.0040.00417.68
8.1.30.0000.00817.87
8.1.20.0080.00017.72
8.1.10.0000.00817.69
8.1.00.0000.00817.64
8.0.300.0060.00319.90
8.0.290.0050.00316.88
8.0.280.0050.00318.40
8.0.270.0000.00718.13
8.0.260.0030.00316.91
8.0.250.0030.00317.14
8.0.240.0000.00817.09
8.0.230.0030.00317.20
8.0.220.0000.00717.07
8.0.210.0000.00717.10
8.0.200.0030.00617.09
8.0.190.0050.00317.20
8.0.180.0050.00317.03
8.0.170.0000.00917.10
8.0.160.0070.00017.05
8.0.150.0040.00417.14
8.0.140.0130.00017.04
8.0.130.0000.00613.55
8.0.120.0040.00417.04
8.0.110.0000.00716.96
8.0.100.0050.00316.93
8.0.90.0030.00617.10
8.0.80.0080.00817.13
8.0.70.0000.00817.08
8.0.60.0070.00017.18
8.0.50.0060.00316.91
8.0.30.0100.00717.05
8.0.20.0130.00717.30
8.0.10.0050.00217.11
8.0.00.0090.01516.88
7.4.330.0020.00215.55
7.4.320.0040.00416.70
7.4.300.0070.00016.64
7.4.290.0040.00416.64
7.4.280.0030.00616.65
7.4.270.0040.00416.74
7.4.260.0030.00313.41
7.4.250.0040.00416.61
7.4.240.0040.00316.77
7.4.230.0000.00716.77
7.4.220.0020.00516.70
7.4.210.0070.01316.67
7.4.200.0040.00416.85
7.4.130.0100.01216.62
7.4.120.0060.01516.89
7.4.110.0100.00716.80
7.4.100.0100.00716.63
7.4.90.0070.01116.74
7.4.80.0130.00419.39
7.4.70.0080.00916.73
7.4.60.0110.00616.83
7.4.50.0110.00716.39
7.4.40.0100.01016.55
7.4.30.0130.00716.70
7.4.20.0130.00616.63
7.4.10.0060.01416.50
7.4.00.0000.01716.46
7.3.330.0070.00016.54
7.3.320.0000.00613.38
7.3.310.0000.00716.32
7.3.300.0070.00016.47
7.3.290.0000.01416.43
7.3.280.0090.01216.34
7.3.260.0120.01216.42
7.3.240.0090.00816.59
7.3.230.0150.00416.32
7.3.210.0070.01016.58
7.3.200.0040.01216.55
7.3.190.0100.00716.72
7.3.180.0150.00616.59
7.3.170.0120.00416.59
7.3.160.0100.01016.49
7.3.150.0170.00616.38
7.3.140.0120.01016.42
7.3.130.0080.01216.34
7.3.120.0110.00816.64
7.3.110.0060.01616.47
7.3.100.0130.00816.42
7.3.90.0110.00816.42
7.3.80.0110.01116.43
7.3.70.0080.01516.41
7.3.60.0120.01216.41
7.3.50.0130.00616.58
7.3.40.0150.00516.38
7.3.30.0080.01216.49
7.3.20.0130.00816.39
7.3.10.0160.00516.51
7.3.00.0180.00316.45
7.2.330.0140.00516.58
7.2.320.0060.01516.63
7.2.310.0070.01016.96
7.2.300.0060.01216.86
7.2.290.0160.00716.61
7.2.280.0120.00916.71
7.2.270.0120.00716.80
7.2.260.0000.01816.36
7.2.250.0100.01016.54
7.2.240.0180.00316.67
7.2.230.0100.01016.61
7.2.220.0090.01316.87
7.2.210.0080.01316.80
7.2.200.0190.00316.45
7.2.190.0080.01216.69
7.2.180.0070.01416.78
7.2.170.0190.00916.58
7.2.160.0130.00716.53
7.2.150.0140.00716.68
7.2.140.0220.00016.71
7.2.130.0210.00516.63
7.2.120.0180.00916.70
7.2.110.0120.01216.87
7.2.100.0240.00016.75
7.2.90.0120.01216.78
7.2.80.0120.00916.49
7.2.70.0100.01416.59
7.2.60.0070.01516.77
7.2.50.0210.00616.79
7.2.40.0060.01516.63
7.2.30.0210.00716.79
7.2.20.0170.00716.73
7.2.10.0120.01416.82
7.2.00.0250.00316.80

preferences:
52.15 ms | 400 KiB | 5 Q