3v4l.org

run code in 300+ PHP versions simultaneously
<?php $offset = "-1100"; $hours = substr($offset, 0, strlen($offset) - 2); $minutes = substr($offset, -2); $seconds = $hours * 60 * 60 + $minutes * 60; $tz = timezone_name_from_abbr('', $seconds, 1); if($tz === false) $tz = timezone_name_from_abbr('', $seconds, 0); print $tz; $localtime = \DateTime::createFromFormat( 'Y-m-d H:i:s', 'Wed, 01 Apr 2015 17:55:00 +0000', new \DateTimeZone($tz)); print $localtime->format(\DateTime::RFC2822);

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.00316.38
8.3.50.0090.00921.15
8.3.40.0140.00718.96
8.3.30.0070.00718.78
8.3.20.0090.00020.30
8.3.10.0030.00623.68
8.3.00.0040.00421.95
8.2.180.0140.00416.63
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.03
8.2.120.0040.00426.35
8.2.110.0040.00719.33
8.2.100.0090.00318.05
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0090.00017.88
8.2.60.0050.00317.80
8.2.50.0030.00618.09
8.2.40.0040.00422.19
8.2.30.0050.00219.37
8.2.20.0000.00717.84
8.2.10.0000.00718.14
8.2.00.0000.00718.13
8.1.280.0040.01325.92
8.1.270.0040.00423.91
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00522.19
8.1.230.0040.00817.70
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.38
8.1.180.0030.00618.10
8.1.170.0050.00318.64
8.1.160.0040.00420.60
8.1.150.0030.00620.68
8.1.140.0080.00019.57
8.1.130.0040.00417.64
8.1.120.0000.00717.45
8.1.110.0000.00717.45
8.1.100.0050.00317.38
8.1.90.0030.00517.47
8.1.80.0000.00717.39
8.1.70.0000.00717.42
8.1.60.0000.00817.52
8.1.50.0040.00417.53
8.1.40.0050.00317.51
8.1.30.0060.00317.59
8.1.20.0000.00817.68
8.1.10.0040.00417.57
8.1.00.0030.00617.48
8.0.300.0080.00018.96
8.0.290.0000.00716.88
8.0.280.0000.00718.50
8.0.270.0030.00317.31
8.0.260.0060.00317.37
8.0.250.0070.00017.23
8.0.240.0000.00817.17
8.0.230.0000.00717.02
8.0.220.0000.00717.10
8.0.210.0050.00317.10
8.0.200.0050.00217.13
8.0.190.0030.00517.09
8.0.180.0040.00417.11
8.0.170.0030.00517.02
8.0.160.0030.00517.18
8.0.150.0000.00716.87
8.0.140.0080.00017.02
8.0.130.0000.00513.54
8.0.120.0040.00417.05
8.0.110.0040.00416.98
8.0.100.0000.00717.14
8.0.90.0050.00217.04
8.0.80.0090.00917.05
8.0.70.0000.00716.97
8.0.60.0000.00716.94
8.0.50.0050.00317.14
8.0.30.0040.01417.13
8.0.20.0150.00517.40
8.0.10.0070.00017.14
8.0.00.0120.00816.79
7.4.330.0000.00516.67
7.4.320.0000.00616.58
7.4.300.0030.00516.65
7.4.290.0060.00316.55
7.4.280.0030.00616.64
7.4.270.0030.00316.59
7.4.260.0000.00816.54
7.4.250.0000.00816.61
7.4.240.0080.00016.57
7.4.230.0030.00316.54
7.4.220.0070.01316.61
7.4.210.0040.01116.64
7.4.200.0030.00316.73
7.4.160.0060.00916.57
7.4.150.0050.01417.40
7.4.140.0140.00817.86
7.4.130.0120.00616.62
7.4.120.0140.00716.63
7.4.110.0090.00916.82
7.4.100.0070.01016.82
7.4.90.0030.01416.66
7.4.80.0200.00019.39
7.4.70.0060.01016.90
7.4.60.0040.00616.66
7.4.50.0090.00616.50
7.4.40.0070.01116.77
7.4.30.0100.01016.46
7.4.00.0050.00815.18
7.3.330.0000.00513.27
7.3.320.0000.00513.35
7.3.310.0070.00016.59
7.3.300.0040.00416.55
7.3.290.0000.00716.53
7.3.280.0110.00716.54
7.3.270.0110.00717.40
7.3.260.0140.00316.60
7.3.250.0110.00616.60
7.3.240.0110.00816.59
7.3.230.0100.00716.54
7.3.210.0140.00316.46
7.3.200.0090.00919.39
7.3.190.0030.01716.67
7.3.180.0040.01216.63
7.3.170.0130.00316.62
7.3.160.0040.01916.61
7.3.10.0150.01216.23
7.3.00.0160.00816.66
7.2.330.0120.00616.62
7.2.320.0120.00916.66
7.2.310.0090.00616.56
7.2.300.0110.00616.89
7.2.290.0040.01216.93
7.2.130.0120.01316.62
7.2.120.0090.01316.63
7.2.110.0190.00616.58
7.2.100.0110.01716.64
7.2.90.0200.00516.79
7.2.80.0120.00916.83
7.2.70.0110.01116.50
7.2.60.0120.00816.86
7.2.50.0120.00917.02
7.2.40.0140.00616.83
7.2.30.0090.00916.91
7.2.20.0200.00016.86
7.2.10.0060.01216.50
7.2.00.0130.00717.09
7.1.250.0120.00815.79
7.1.200.0100.00315.95
7.1.100.0040.00818.39
7.1.70.0030.00717.32
7.1.60.0170.01019.40
7.1.50.0040.00717.17
7.1.00.0000.08022.45
7.0.200.0650.01014.61
7.0.60.0230.08021.86
7.0.50.0100.07717.85
7.0.40.0070.05320.04
7.0.30.0270.07020.09
7.0.20.0230.04720.18
7.0.10.0130.06020.19
7.0.00.0070.04020.29
5.6.280.0030.03020.82
5.6.210.0100.03720.72
5.6.200.0070.05318.23
5.6.190.0130.03720.64
5.6.180.0230.05020.41
5.6.170.0400.06020.51
5.6.160.0000.06720.37
5.6.150.0100.08018.07
5.6.140.0000.04318.22
5.6.130.0030.08718.11
5.6.120.0170.07321.07
5.6.110.0130.07021.11
5.6.100.0100.04721.13
5.6.90.0200.04720.88
5.6.80.0130.07720.46
5.5.350.0330.07720.38
5.5.340.0130.06317.93
5.5.330.0100.03720.21
5.5.320.0270.07720.24
5.5.310.0370.07320.27
5.5.300.0100.07018.02
5.5.290.0030.04018.01
5.5.280.0130.05720.73
5.5.270.0000.09320.92
5.5.260.0100.05020.88
5.5.250.0100.03720.61
5.5.240.0230.03720.16

preferences:
64.04 ms | 401 KiB | 5 Q