3v4l.org

run code in 300+ PHP versions simultaneously
<?php $countries = array ( 'London' => 'Europe/London', 'Istanbul' => 'Europe/Istanbul', 'Rome' => 'Europe/Rome', 'Berlin' => 'Europe/Berlin', 'Athens' => 'Europe/Athens', ); $offsets = array(); // initialize foreach($countries as $key => $country_offset) { // grouping $offset = timezone_offset_get( new DateTimeZone( $country_offset ), new DateTime() ); $offsets[$offset][] = array( 'name' => $key, 'offset' => $offset, 'timezome' => $country_offset, ); } ksort($offsets); // sort // presentation foreach($offsets as $offset => $info) { echo $offset . ' - '; $temp = array(); foreach($info as $t) { $temp[] = $t['name']; } echo implode(', ', $temp), "\n"; }

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.4.10.0090.00018.09
8.3.140.0100.01016.52
8.3.130.0000.00818.48
8.3.120.0060.00318.78
8.3.110.0030.00620.94
8.3.100.0000.01124.06
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0120.00616.63
8.3.60.0070.01416.48
8.3.50.0140.00721.27
8.3.40.0190.00319.06
8.3.30.0110.00418.92
8.3.20.0040.00419.00
8.3.10.0080.00019.90
8.3.00.0030.00619.02
8.2.250.0200.00016.61
8.2.240.0000.00917.41
8.2.230.0100.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0090.00316.88
8.2.190.0130.00916.75
8.2.180.0090.00925.92
8.2.170.0150.00019.12
8.2.160.0100.00722.96
8.2.150.0000.01025.66
8.2.140.0040.00424.66
8.2.130.0040.00418.03
8.2.120.0080.00026.35
8.2.110.0060.00321.10
8.2.100.0080.00418.05
8.2.90.0040.00419.47
8.2.80.0060.00317.97
8.2.70.0000.00817.74
8.2.60.0080.00318.05
8.2.50.0000.00818.10
8.2.40.0040.00420.47
8.2.30.0000.00820.79
8.2.20.0040.00418.13
8.2.10.0000.00718.35
8.2.00.0080.00018.15
8.1.300.0160.00017.96
8.1.290.0030.00630.84
8.1.280.0080.01125.92
8.1.270.0000.00823.97
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.62
8.1.230.0040.00817.82
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0060.00317.61
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0050.00319.09
8.1.150.0050.00218.89
8.1.140.0000.00719.54
8.1.130.0000.00817.58
8.1.120.0030.00517.66
8.1.110.0040.00417.68
8.1.100.0040.00417.56
8.1.90.0000.00817.58
8.1.80.0000.00717.57
8.1.70.0040.00417.62
8.1.60.0040.00417.73
8.1.50.0050.00317.69
8.1.40.0000.00717.59
8.1.30.0080.00017.86
8.1.20.0050.00317.76
8.1.10.0040.00417.46
8.1.00.0020.00517.68
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.70
8.0.270.0000.00717.16
8.0.260.0030.00317.09
8.0.250.0000.00717.36
8.0.240.0070.00017.28
8.0.230.0000.00717.27
8.0.220.0000.00717.18
8.0.210.0040.00417.13
8.0.200.0070.00017.30
8.0.190.0000.00817.29
8.0.180.0000.00717.14
8.0.170.0000.00717.26
8.0.160.0000.00717.30
8.0.150.0040.00417.09
8.0.140.0040.00417.09
8.0.130.0000.00713.66
8.0.120.0000.00817.08
8.0.110.0040.00417.05
8.0.100.0050.00317.10
8.0.90.0000.00717.10
8.0.80.0030.01317.31
8.0.70.0000.00717.24
8.0.60.0000.00817.14
8.0.50.0050.00317.19
8.0.30.0060.01417.45
8.0.20.0130.01117.52
8.0.10.0040.00417.23
8.0.00.0080.01017.07
7.4.330.0000.00515.27
7.4.320.0000.00716.82
7.4.300.0000.00616.66
7.4.290.0030.00316.75
7.4.280.0050.00316.79
7.4.270.0070.00016.80
7.4.260.0030.00316.64
7.4.250.0000.00716.73
7.4.240.0080.00016.81
7.4.230.0000.00716.93
7.4.220.0130.01016.68
7.4.210.0100.01016.84
7.4.200.0040.00416.81
7.4.160.0090.00616.60
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0110.01316.74
7.4.120.0150.00716.95
7.4.110.0090.01216.74
7.4.100.0170.00016.90
7.4.90.0070.01016.91
7.4.80.0100.01319.39
7.4.70.0060.01216.71
7.4.60.0030.01416.75
7.4.50.0030.01016.59
7.4.40.0000.02216.86
7.4.30.0000.01616.69
7.4.00.0050.01215.19
7.3.330.0030.00313.35
7.3.320.0050.00013.46
7.3.310.0050.00216.65
7.3.300.0000.00716.61
7.3.290.0080.00016.51
7.3.280.0080.01016.53
7.3.270.0030.01417.40
7.3.260.0070.01116.81
7.3.250.0140.00516.78
7.3.240.0090.00816.69
7.3.230.0030.01316.96
7.3.210.0070.01016.81
7.3.200.0090.01116.42
7.3.190.0060.01016.64
7.3.180.0100.00716.89
7.3.170.0100.00716.75
7.3.160.0100.00716.77
7.3.120.0030.01315.37
7.3.110.0050.01215.14
7.3.100.0060.00615.01
7.3.90.0020.01115.20
7.3.80.0060.00714.98
7.3.70.0060.00614.96
7.3.60.0090.00515.19
7.3.50.0030.00915.06
7.3.40.0090.00414.99
7.3.30.0070.00715.10
7.3.20.0050.01116.95
7.3.10.0050.00916.97
7.3.00.0060.01017.01
7.2.330.0080.01016.88
7.2.320.0040.01516.71
7.2.310.0140.00317.20
7.2.300.0120.00617.04
7.2.290.0040.01116.71
7.2.250.0030.01715.31
7.2.240.0090.01115.58
7.2.230.0080.00715.22
7.2.220.0050.00915.59
7.2.210.0060.00714.98
7.2.200.0050.00915.26
7.2.190.0060.01015.28
7.2.180.0020.01115.27
7.2.170.0030.01015.38
7.2.130.0130.00317.00
7.2.120.0070.00717.04
7.2.110.0030.00817.35
7.2.100.0110.00317.14
7.2.90.0110.00317.36
7.2.80.0000.01517.22
7.2.70.0040.00717.36
7.2.60.0080.00816.98
7.2.50.0070.00717.25
7.2.40.0040.00717.34
7.2.30.0080.00817.07
7.2.20.0100.00017.39
7.2.10.0070.01016.99
7.2.00.0080.00718.43
7.1.330.0050.01015.93
7.1.320.0070.00915.88
7.1.310.0070.00916.23
7.1.300.0090.00615.88
7.1.290.0050.00716.05
7.1.280.0050.01016.18
7.1.270.0100.00315.91
7.1.260.0080.00816.05
7.1.250.0030.00915.98
7.1.200.0060.00915.80
7.1.100.0070.00718.51
7.1.70.0060.00317.25
7.1.60.0090.01620.41
7.1.00.0030.07722.54
7.0.200.0060.00317.17
7.0.60.0170.08021.81
7.0.50.0100.03717.89
7.0.40.0230.05320.44
7.0.30.0300.04720.33
7.0.20.0200.07320.41
7.0.10.0130.07020.37
7.0.00.0200.07020.34
5.6.280.0000.07721.11
5.6.210.0100.07720.62
5.6.200.0070.06318.11
5.6.190.0230.07321.11
5.6.180.0100.06721.02
5.6.170.0200.06020.94
5.6.160.0170.07721.11
5.6.150.0030.07021.05
5.6.140.0170.05321.16
5.6.130.0100.06320.90
5.6.120.0130.06721.02
5.6.110.0070.06321.01
5.6.100.0300.06021.04
5.6.90.0370.05721.00
5.6.80.0500.07320.54
5.6.70.0370.04720.48
5.6.60.0430.05320.41
5.6.50.0370.05720.53
5.6.40.0200.06020.51
5.6.30.0030.06020.52
5.6.20.0530.06020.39
5.6.10.0430.04720.54
5.6.00.0400.04720.38
5.5.350.0230.03720.47
5.5.340.0030.04018.01
5.5.330.0270.05020.79
5.5.320.0330.07020.70
5.5.310.0200.05320.93
5.5.300.0130.05720.88
5.5.290.0030.07021.04
5.5.280.0170.06020.93
5.5.270.0070.06320.69
5.5.260.0330.04321.02
5.5.250.0370.05020.72
5.5.240.0500.07020.24
5.5.230.0400.05320.13
5.5.220.0330.06020.22
5.5.210.0300.06020.23
5.5.200.0400.05020.37
5.5.190.0170.05020.04
5.5.180.0170.08320.21
5.5.160.0370.05320.14
5.5.150.0370.05020.20
5.5.140.0300.05720.25
5.5.130.0330.05020.23
5.5.120.0300.05720.36
5.5.110.0330.04720.36
5.5.100.0370.04720.08
5.5.90.0170.06020.04
5.5.80.0130.06720.19
5.5.70.0300.06020.25
5.5.60.0370.04720.24
5.5.50.0370.05020.11
5.5.40.0330.05019.90
5.5.30.0230.05320.15
5.5.20.0470.06320.23
5.5.10.0400.04720.13
5.5.00.0330.05320.07

preferences:
16.4 ms | 403 KiB | 5 Q