3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pos = strpos('PHP 5.6.10', phpversion()); $pos_old = strpos('5.5.9', phpversion()); $arr_new = array(); $arr_old = array(); print "<pre>"; if($pos !== false){ $arr_new = timezone_abbreviations_list(); foreach( $arr_new as $key => $arr){ if(in_array($key, array('acdt', 'acwdt', 'acwst', 'aedt', 'aest','awdt','awst','fet','jcst','jwst','lhdt','msm','sdt','sret','wib','wita','wsst','xjt'))){ foreach($arr as $sub_arr){ echo $key. '=>'. $sub_arr['timezone_id']; echo "\n"; } } } } if($pos_old !== false){ $arr_old = array_keys(timezone_abbreviations_list()); } ?>

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)
7.4.10.0040.01114.59
7.4.00.0100.00314.55
7.3.130.0140.00314.73
7.3.120.0040.01114.48
7.3.110.0070.01114.77
7.3.100.0110.00414.76
7.3.90.0060.00614.51
7.3.80.0030.00914.61
7.3.70.0070.00714.51
7.3.60.0060.00614.72
7.3.50.0080.00814.52
7.3.40.0000.01414.53
7.3.30.0080.00414.39
7.3.20.0070.01016.38
7.3.10.0070.01016.29
7.3.00.0090.00016.64
7.2.260.0130.00314.75
7.2.250.0110.00714.55
7.2.240.0060.00914.86
7.2.230.0100.00614.48
7.2.220.0060.00914.98
7.2.210.0070.00714.77
7.2.200.0030.00914.76
7.2.190.0060.01214.71
7.2.180.0060.01214.73
7.2.170.0030.00914.45
7.2.160.0060.00914.68
7.2.150.0140.00316.75
7.2.140.0000.01416.94
7.2.130.0000.01116.86
7.2.120.0100.00317.03
7.2.110.0070.00716.67
7.2.100.0130.00316.70
7.2.90.0130.00316.98
7.2.80.0100.00716.77
7.2.70.0030.00616.74
7.2.60.0070.00716.72
7.2.50.0060.00916.86
7.2.40.0070.00416.77
7.2.30.0040.00716.73
7.2.20.0030.01016.45
7.2.10.0060.00916.97
7.2.00.0090.00618.20
7.1.330.0060.00615.49
7.1.320.0070.01015.41
7.1.310.0110.00315.66
7.1.300.0080.00815.66
7.1.290.0030.00615.56
7.1.280.0050.00515.41
7.1.270.0100.00615.64
7.1.260.0060.00615.91
7.1.250.0060.00815.63
7.1.240.0110.00415.58
7.1.230.0000.01415.58
7.1.220.0000.01015.65
7.1.210.0030.00815.54
7.1.200.0080.00415.67
7.1.190.0040.00415.68
7.1.180.0030.00715.67
7.1.170.0120.00315.71
7.1.160.0060.00615.54
7.1.150.0030.00915.67
7.1.140.0090.00315.50
7.1.130.0080.00815.48
7.1.120.0070.00715.52
7.1.110.0090.00415.48
7.1.100.0040.00516.99
7.1.90.0030.00915.71
7.1.80.0090.00615.66
7.1.70.0080.00315.99
7.1.60.0080.01017.88
7.1.50.0100.00715.78
7.1.40.0070.00715.25
7.1.30.0090.00615.44
7.1.20.0090.00615.64
7.1.10.0000.01215.46
7.1.00.0000.04718.88
7.0.330.0080.00814.95
7.0.320.0040.01115.24
7.0.310.0040.01115.23
7.0.300.0120.00315.35
7.0.290.0000.01115.45
7.0.280.0040.00415.07
7.0.270.0000.00815.37
7.0.260.0030.00915.28
7.0.250.0040.00415.25
7.0.240.0050.00315.14
7.0.230.0100.00715.22
7.0.220.0030.01314.76
7.0.210.0040.00715.10
7.0.200.0030.00715.77
7.0.190.0030.00515.44
7.0.180.0040.01115.05
7.0.170.0000.01115.05
7.0.160.0090.00615.46
7.0.150.0000.01115.40
7.0.140.0070.01015.27
7.0.130.0070.00715.15
7.0.120.0110.00415.37
7.0.110.0060.00915.07
7.0.100.0090.00315.24
7.0.90.0040.01115.40
7.0.80.0080.00515.40
7.0.70.0060.00615.13
7.0.60.0070.04317.52
7.0.50.0100.02316.64
7.0.40.0080.03316.62
7.0.30.0150.04316.66
7.0.20.0140.03916.68
7.0.10.0100.03216.78
7.0.00.0170.03516.56
5.6.400.0070.00414.44
5.6.390.0130.00414.11
5.6.380.0100.00714.25
5.6.370.0040.00714.36
5.6.360.0030.01014.09
5.6.350.0070.00713.93
5.6.340.0030.00614.15
5.6.330.0000.00914.39
5.6.320.0060.00613.96
5.6.310.0030.01014.23
5.6.300.0030.01014.13
5.6.290.0030.01214.22
5.6.280.0080.03017.54
5.6.270.0030.01314.25
5.6.260.0000.00914.26
5.6.250.0070.00714.21
5.6.240.0070.00714.49
5.6.230.0100.00314.44
5.6.220.0030.00613.93
5.6.210.0060.03117.30
5.6.200.0100.02216.22
5.6.190.0110.04217.27
5.6.180.0080.02817.31
5.6.170.0220.03917.38
5.6.160.0020.04417.15
5.6.150.0080.03116.27
5.6.140.0030.04816.22
5.6.130.0050.02516.15
5.6.120.0100.04317.66
5.6.110.0060.04417.57
5.6.100.0070.04519.02
5.6.90.0080.02317.43
5.6.80.0070.02417.16
5.6.70.2310.02517.44
5.6.60.0080.00614.23
5.6.50.0050.00314.38
5.6.40.0030.01214.26
5.6.30.0110.00614.22
5.6.20.0030.01014.12
5.6.10.0070.01315.67
5.6.00.0090.00913.77
5.5.380.0030.01014.27
5.5.370.0000.01414.12
5.5.360.0070.00713.95
5.5.350.0040.04617.29
5.5.340.0020.02416.06
5.5.330.0070.03817.42
5.5.320.0220.04417.31
5.5.310.0200.03917.38
5.5.300.0050.04516.13
5.5.290.0100.04016.08
5.5.280.0150.02017.41
5.5.270.0040.02317.53
5.5.260.0050.04817.55
5.5.250.0060.02517.42
5.5.240.0030.03017.04
5.5.230.0070.00414.08
5.5.220.0060.00614.25
5.5.210.0090.00314.15
5.5.200.0000.01713.86
5.5.190.0100.00314.19
5.5.180.0070.00714.15
5.5.170.0030.01014.00
5.5.160.0110.00314.10
5.5.150.0030.00814.17
5.5.140.0110.00613.73
5.5.130.0100.00313.82
5.5.120.0090.00614.16
5.5.110.0120.00314.19
5.5.100.0060.00614.04
5.5.90.0000.01515.48
5.5.80.0000.01413.91
5.5.70.0060.00614.08
5.5.60.0100.00313.91
5.5.50.0000.01514.08
5.5.40.0070.00714.38
5.5.30.0000.01214.11
5.5.20.0120.00314.34
5.5.10.0070.00713.97
5.5.00.0040.01114.08
5.4.450.0330.02315.98
5.4.440.0260.03016.18
5.4.430.0230.03615.99
5.4.420.0230.03015.99
5.4.410.0300.02315.86
5.4.400.0210.03115.83
5.4.390.0280.02815.96
5.4.380.0350.03515.76
5.4.370.0330.03015.93
5.4.360.0350.03415.93
5.4.350.0300.03315.75
5.4.340.0200.03515.82
5.4.330.0060.00612.72
5.4.320.0350.03915.81
5.4.310.0270.02815.75
5.4.300.0350.02915.93
5.4.290.0280.03215.82
5.4.280.0370.03016.01
5.4.270.0320.02715.83
5.4.260.0300.02816.00
5.4.250.0310.02815.91
5.4.240.0290.02515.93
5.4.230.0180.03415.92
5.4.220.0220.03215.92
5.4.210.0250.03115.99
5.4.200.0230.03016.02
5.4.190.0290.03215.74
5.4.180.0310.02415.81
5.4.170.0250.03315.94
5.4.160.0300.02315.74
5.4.150.0340.02615.85
5.4.140.0200.03414.48
5.4.130.0220.02714.63
5.4.120.0230.02714.43
5.4.110.0230.03314.64
5.4.100.0320.02814.59
5.4.90.0300.03714.60
5.4.80.0250.02614.59
5.4.70.0030.02414.59
5.4.60.0050.03514.52
5.4.50.0040.04014.44
5.4.40.0080.02814.55
5.4.30.0220.02014.46
5.4.20.0190.03514.51
5.4.10.0020.02614.45
5.4.00.0030.00612.72

preferences:
39.11 ms | 400 KiB | 5 Q