3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateTimeZoneTaipei = new DateTimeZone("Asia/Taipei"); $dateTimeZoneJapan = new DateTimeZone("Asia/Tokyo"); // Create two DateTime objects that will contain the same Unix timestamp, but // have different timezones attached to them. $dateTimeTaipei = new DateTime("now", $dateTimeZoneTaipei); $dateTimeJapan = new DateTime("now", $dateTimeZoneJapan); // Calculate the GMT offset for the date/time contained in the $dateTimeTaipei // object, but using the timezone rules as defined for Tokyo // ($dateTimeZoneJapan). $timeOffset = $dateTimeZoneJapan->getOffset($dateTimeTaipei); // Should show int(32400) (for dates after Sat Sep 8 01:00:00 1951 JST). var_dump($timeOffset);

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.0120.00818.30
8.3.50.0300.01221.19
8.3.40.0040.01118.97
8.3.30.0090.00618.91
8.3.20.0040.00420.34
8.3.10.0040.00423.48
8.3.00.0050.00319.25
8.2.180.0070.00716.75
8.2.170.0150.00022.96
8.2.160.0160.00320.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00819.82
8.2.110.0030.01020.54
8.2.100.0090.00318.16
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0000.00817.93
8.2.50.0030.00918.07
8.2.40.0000.00819.94
8.2.30.0060.00317.94
8.2.20.0000.01017.76
8.2.10.0030.00518.00
8.2.00.0070.00017.80
8.1.280.0160.00325.92
8.1.270.0030.00721.89
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00723.97
8.1.230.0040.00719.07
8.1.220.0080.00017.76
8.1.210.0030.00618.77
8.1.200.0090.00017.25
8.1.190.0040.00417.48
8.1.180.0070.00018.10
8.1.170.0050.00518.34
8.1.160.0040.00421.89
8.1.150.0000.00718.94
8.1.140.0040.00417.51
8.1.130.0030.00317.81
8.1.120.0040.00417.59
8.1.110.0040.00417.48
8.1.100.0030.00617.48
8.1.90.0030.00517.53
8.1.80.0000.00717.58
8.1.70.0000.00717.51
8.1.60.0040.00417.68
8.1.50.0060.00317.58
8.1.40.0100.00017.65
8.1.30.0040.00417.71
8.1.20.0080.00017.67
8.1.10.0080.00017.62
8.1.00.0080.00017.58
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0070.00018.38
8.0.270.0000.00717.32
8.0.260.0070.00018.41
8.0.250.0070.00017.11
8.0.240.0000.00817.05
8.0.230.0000.00716.98
8.0.220.0060.00317.05
8.0.210.0030.00316.96
8.0.200.0030.00317.13
8.0.190.0070.00416.98
8.0.180.0070.00017.05
8.0.170.0030.00516.98
8.0.160.0080.00017.11
8.0.150.0070.00716.94
8.0.140.0040.00416.93
8.0.130.0000.00513.46
8.0.120.0040.00417.03
8.0.110.0040.00417.07
8.0.100.0000.00716.98
8.0.90.0070.00016.86
8.0.80.0120.00917.02
8.0.70.0000.00717.01
8.0.60.0040.00416.91
8.0.50.0040.00416.89
8.0.30.0130.00817.27
8.0.20.0090.01417.40
8.0.10.0050.00317.21
8.0.00.0100.00716.88
7.4.330.0050.00015.00
7.4.320.0000.00616.68
7.4.300.0000.00616.57
7.4.290.0000.00716.59
7.4.280.0040.00416.64
7.4.270.0050.00316.61
7.4.260.0100.00016.62
7.4.250.0020.00516.59
7.4.240.0050.00216.61
7.4.230.0030.00316.77
7.4.220.0090.00916.66
7.4.210.0070.00716.72
7.4.200.0000.00816.49
7.4.160.0160.00016.67
7.4.150.0230.00317.40
7.4.140.0080.01217.86
7.4.130.0050.01216.58
7.4.120.0100.01116.66
7.4.110.0000.01716.41
7.4.100.0100.00716.51
7.4.90.0070.01016.57
7.4.80.0100.01319.39
7.4.70.0070.01716.67
7.4.60.0120.00416.68
7.4.50.0060.00316.70
7.4.40.0100.01316.57
7.4.30.0030.01316.67
7.4.00.0060.00915.12
7.3.330.0030.00313.16
7.3.320.0000.00513.12
7.3.310.0070.00016.11
7.3.300.0000.00716.27
7.3.290.0100.01016.26
7.3.280.0060.01116.27
7.3.270.0090.00917.40
7.3.260.0030.01716.54
7.3.250.0060.01016.37
7.3.240.0070.01016.47
7.3.230.0120.00616.39
7.3.210.0110.00616.61
7.3.200.0090.01219.39
7.3.190.0130.01016.23
7.3.180.0070.01316.57
7.3.170.0040.01116.46
7.3.160.0130.00316.38
7.2.330.0100.00716.61
7.2.320.0090.00916.53
7.2.310.0130.00616.85
7.2.300.0070.01016.54
7.2.290.0170.00616.60
7.2.60.0070.00717.01
7.2.00.0060.00619.70
7.1.200.0030.00815.85
7.1.100.0030.00918.18
7.1.70.0000.00716.95
7.1.60.0100.01419.11
7.1.50.0000.01316.90
7.1.00.0030.07322.31
7.0.200.0040.00717.01
7.0.140.0000.07722.00
7.0.60.0100.08319.86
7.0.50.0130.07317.86
7.0.40.0030.04320.07
7.0.30.0400.08020.01
7.0.20.0270.03020.17
7.0.10.0000.04720.09
7.0.00.0070.08320.01
5.6.280.0030.07020.86
5.6.210.0130.05720.53
5.6.200.0070.08318.19
5.6.190.0030.07020.43
5.6.180.0300.04720.57
5.6.170.1530.04720.61
5.6.160.0070.04720.40
5.6.150.0030.07018.22
5.6.140.0130.06318.20
5.6.130.0030.08718.10
5.6.120.0030.07720.93
5.6.110.0030.08720.98
5.6.100.0170.07320.86
5.6.90.0100.08321.13
5.6.80.0030.07020.52
5.5.350.0130.08020.42
5.5.340.0030.04717.97
5.5.330.0100.06320.48
5.5.320.0470.07320.24
5.5.310.0200.08020.20
5.5.300.0070.08017.88
5.5.290.0070.06017.92
5.5.280.0170.07320.68
5.5.270.0130.04020.66
5.5.260.0100.07720.72
5.5.250.0070.04720.55
5.5.240.0230.05320.36
5.4.450.0270.04719.21
5.4.440.0200.07319.25
5.4.430.0300.07019.40
5.4.420.0230.07019.24
5.4.410.0200.06019.08
5.4.400.0300.06719.09
5.4.390.0230.07018.88
5.4.380.0300.06319.16
5.4.370.0370.05719.24
5.4.360.0230.05319.13
5.4.350.0330.07019.25
5.4.340.0270.04718.81
5.4.320.0330.07018.93
5.4.310.0270.07019.25
5.4.300.0200.05319.08
5.4.290.0270.07318.80
5.4.280.0270.06718.93
5.4.270.0300.07019.05
5.4.260.0230.03319.13
5.4.250.0300.03019.24
5.4.240.0270.05019.21
5.4.230.0300.07019.24
5.4.220.0330.07019.15
5.4.210.0270.05019.13
5.4.200.0200.04718.75
5.4.190.0370.06319.14
5.4.180.0300.03319.08
5.4.170.0300.06019.05
5.4.160.0200.07719.14
5.4.150.0200.04718.91
5.4.140.0430.06316.32
5.4.130.0370.06016.37
5.4.120.0330.06316.41
5.4.110.0300.06316.43
5.4.100.0300.06716.11
5.4.90.0230.04716.45
5.4.80.0300.05016.43
5.4.70.0300.06716.46
5.4.60.0270.04316.36
5.4.50.0270.05016.16
5.4.40.0270.03716.43
5.4.30.0270.03016.43
5.4.20.0200.03716.29
5.4.10.0330.06016.21
5.4.00.0300.04715.78

preferences:
35.14 ms | 401 KiB | 5 Q