3v4l.org

run code in 300+ PHP versions simultaneously
<?php $offset = '+7:30'; // Calculate seconds from offset list($hours, $minutes) = explode(':', $offset); $seconds = $hours * 60 * 60 + $minutes * 60; // Get timezone name from seconds $tz = timezone_name_from_abbr('', $seconds, 1); // Workaround for bug #44780 if($tz === false) $tz = timezone_name_from_abbr('', $seconds, 0); // Set timezone date_default_timezone_set($tz); echo $tz . ': ' . date('r');

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.0070.01516.75
8.3.50.0130.00721.15
8.3.40.0140.00019.02
8.3.30.0110.00418.79
8.3.20.0080.00019.97
8.3.10.0040.00421.79
8.3.00.0070.00020.19
8.2.180.0090.00916.75
8.2.170.0120.00322.96
8.2.160.0070.00720.23
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00818.00
8.2.110.0110.00022.30
8.2.100.0090.00318.16
8.2.90.0080.00019.30
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0040.00419.27
8.2.30.0030.00720.66
8.2.20.0000.00917.90
8.2.10.0000.00718.26
8.2.00.0040.00418.08
8.1.280.0130.00325.92
8.1.270.0110.00823.93
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.64
8.1.230.0040.00819.57
8.1.220.0000.00817.88
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00817.38
8.1.180.0090.00018.10
8.1.170.0040.00418.73
8.1.160.0070.00022.08
8.1.150.0000.00718.89
8.1.140.0030.00617.47
8.1.130.0070.00017.71
8.1.120.0000.00717.61
8.1.110.0040.00417.55
8.1.100.0000.00717.56
8.1.90.0030.00417.53
8.1.80.0000.00817.54
8.1.70.0000.00717.50
8.1.60.0040.00417.68
8.1.50.0050.00317.67
8.1.40.0050.00317.55
8.1.30.0000.00817.68
8.1.20.0050.00217.67
8.1.10.0000.00817.72
8.1.00.0080.00017.72
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0040.00418.63
8.0.270.0030.00317.36
8.0.260.0070.00317.41
8.0.250.0050.00317.09
8.0.240.0040.00417.07
8.0.230.0000.00717.23
8.0.220.0030.00317.12
8.0.210.0000.00717.09
8.0.200.0040.00417.10
8.0.190.0000.00817.21
8.0.180.0030.00517.11
8.0.170.0000.00817.18
8.0.160.0030.00517.22
8.0.150.0000.00717.06
8.0.140.0040.00317.10
8.0.130.0000.00513.55
8.0.120.0040.00417.07
8.0.110.0050.00217.03
8.0.100.0050.00217.15
8.0.90.0000.00817.17
8.0.80.0090.00917.15
8.0.70.0040.00417.05
8.0.60.0040.00416.95
8.0.50.0040.00417.18
8.0.30.0130.00517.19
8.0.20.0150.00417.40
8.0.10.0040.00417.13
8.0.00.0090.00916.87
7.4.330.0000.00515.19
7.4.320.0030.00316.63
7.4.300.0060.00016.55
7.4.290.0060.00316.65
7.4.280.0080.00016.61
7.4.270.0050.00216.69
7.4.260.0040.00416.67
7.4.250.0030.00616.71
7.4.240.0030.00516.62
7.4.230.0030.00516.81
7.4.220.0090.00916.77
7.4.210.0110.00816.80
7.4.200.0070.00016.68
7.4.160.0030.01416.67
7.4.150.0110.00917.40
7.4.140.0090.01117.86
7.4.130.0050.01216.66
7.4.120.0110.00916.79
7.4.110.0090.00916.50
7.4.100.0150.00616.57
7.4.90.0070.01016.66
7.4.80.0100.00719.39
7.4.70.0030.01516.56
7.4.60.0070.01016.67
7.4.50.0050.00316.81
7.4.40.0070.01016.61
7.4.30.0040.01816.60
7.4.00.0080.00814.88
7.3.330.0000.00613.32
7.3.320.0050.00013.32
7.3.310.0040.00416.42
7.3.300.0000.00716.52
7.3.290.0040.01016.50
7.3.280.0120.00816.42
7.3.270.0090.00917.40
7.3.260.0140.00316.69
7.3.250.0100.01016.55
7.3.240.0140.00316.64
7.3.230.0140.00316.57
7.3.210.0070.01316.57
7.3.200.0100.00716.64
7.3.190.0080.00916.70
7.3.180.0060.01616.66
7.3.170.0080.00816.63
7.3.160.0110.01116.48
7.3.120.0030.01315.20
7.3.110.0060.01214.98
7.3.100.0090.00615.14
7.3.90.0040.01114.93
7.3.80.0070.00714.77
7.3.70.0060.00914.91
7.3.60.0070.01114.77
7.3.50.0060.00314.63
7.3.40.0000.01415.06
7.3.30.0040.00714.91
7.3.20.0090.00316.82
7.3.10.0040.01116.81
7.3.00.0080.00716.86
7.2.330.0070.01016.89
7.2.320.0030.02016.88
7.2.310.0080.00816.64
7.2.300.0060.00916.91
7.2.290.0100.00616.97
7.2.250.0040.01515.50
7.2.240.0030.01314.99
7.2.230.0110.00414.91
7.2.220.0060.00614.94
7.2.210.0070.00715.16
7.2.200.0130.00015.09
7.2.190.0120.00615.13
7.2.180.0090.00615.23
7.2.170.0060.00915.12
7.2.130.0100.00316.96
7.2.120.0120.00617.12
7.2.110.0090.00617.24
7.2.100.0000.01416.91
7.2.90.0000.01116.83
7.2.80.0030.01016.84
7.2.70.0000.01417.08
7.2.60.0030.01016.88
7.2.50.0040.00716.90
7.2.40.0030.01416.96
7.2.30.0100.00717.05
7.2.20.0090.00317.07
7.2.10.0060.00917.02
7.2.00.0050.00718.39
7.1.330.0100.00315.96
7.1.320.0130.00316.20
7.1.310.0100.00315.82
7.1.300.0000.00915.82
7.1.290.0000.01515.99
7.1.280.0030.00715.64
7.1.270.0070.00415.54
7.1.260.0000.01615.94
7.1.250.0000.01315.79
7.1.200.0090.00615.98
7.1.100.0670.01016.41
7.1.70.0090.00317.39
7.1.60.0090.01619.29
7.1.50.0120.00916.84
7.1.00.0100.07022.36
7.0.200.0000.00917.08
7.0.90.0070.03319.98
7.0.80.0170.07720.06
7.0.70.0070.07719.93
7.0.60.0200.06719.89
7.0.50.0330.04020.28
7.0.40.0030.06720.15
7.0.30.0030.08320.19
7.0.20.0130.07720.12
7.0.10.0100.08020.02
7.0.00.0030.04320.09
5.6.280.0070.06320.86
5.6.240.0100.03720.45
5.6.230.0000.04020.56
5.6.220.0030.04720.55
5.6.210.0130.04320.61
5.6.200.0030.05721.06
5.6.190.0130.08321.05
5.6.180.0030.03721.04
5.6.170.0070.04321.17
5.6.160.0030.04321.06
5.6.150.0000.04721.10
5.6.140.0030.05721.00
5.6.130.0070.07721.06
5.6.120.0100.06321.05
5.6.110.0030.05721.05
5.6.100.0070.06320.97
5.6.90.0170.05321.02
5.6.80.0100.08020.43
5.6.70.0100.03320.42
5.6.60.0100.07020.54
5.6.50.0070.06020.34
5.6.40.0030.08020.39
5.6.30.0070.07720.31
5.6.20.0200.05720.32
5.6.10.0170.06020.36
5.6.00.0100.06720.44
5.5.380.0100.04720.32
5.5.370.0170.07020.52
5.5.360.0130.06320.33
5.5.350.0130.09720.37
5.5.340.0070.04020.92
5.5.330.0030.08020.80
5.5.320.0030.05320.91
5.5.310.0000.05320.73
5.5.300.0170.08720.87
5.5.290.0100.07720.82
5.5.280.0070.05720.92
5.5.270.0030.05020.63
5.5.260.0100.07020.88
5.5.250.0130.04020.67
5.5.240.0070.05020.26
5.5.230.0100.07720.28
5.5.220.0100.06320.27
5.5.210.0070.03320.26
5.5.200.0100.05020.08
5.5.190.0200.06020.14
5.5.180.0070.03320.17
5.5.160.0030.08020.14
5.5.150.0200.05320.23
5.5.140.0170.07020.20
5.5.130.0000.05320.23
5.5.120.0030.08020.10
5.5.110.0030.05020.07
5.5.100.0130.07320.15
5.5.90.0030.07320.06
5.5.80.0070.07320.13
5.5.70.0100.04720.07
5.5.60.0070.07020.14
5.5.50.0130.04320.13
5.5.40.0130.06020.11
5.5.30.0100.07320.14
5.5.20.0070.06720.02
5.5.10.0070.05020.11
5.5.00.0100.04019.96
5.4.450.0030.04319.40
5.4.440.0030.04719.45
5.4.430.0070.06719.30
5.4.420.0030.08319.35
5.4.410.0100.05719.01
5.4.400.0100.04318.97
5.4.390.0070.07319.05
5.4.380.0070.07718.96
5.4.370.0030.06319.14
5.4.360.0030.04718.96
5.4.350.0070.07319.03
5.4.340.0130.07019.12
5.4.320.0100.07318.79
5.4.310.0070.07018.90
5.4.300.0070.04718.89
5.4.290.0070.07018.96
5.4.280.0170.07019.22
5.4.270.0070.06318.80
5.4.260.0070.08019.14
5.4.250.0030.04319.11
5.4.240.0100.08018.77
5.4.230.0130.06319.00
5.4.220.0070.07719.14
5.4.210.0000.04718.80
5.4.200.0070.04018.89
5.4.190.0070.04018.89
5.4.180.0100.07018.89
5.4.170.0100.06318.98
5.4.160.0170.06718.79
5.4.150.0070.07019.09
5.4.140.0030.07016.32
5.4.130.0100.05716.29
5.4.120.0070.04316.39
5.4.110.0000.04016.36
5.4.100.0070.04016.45
5.4.90.0030.04016.38
5.4.80.0000.04316.47
5.4.70.0100.04016.30
5.4.60.0000.06016.29
5.4.50.0030.06016.18
5.4.40.0030.05716.29
5.4.30.0100.03016.35
5.4.20.0070.06016.18
5.4.10.0130.06716.23
5.4.00.0170.06715.79

preferences:
60.75 ms | 401 KiB | 5 Q