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(); if($pos !== false){ $arr = timezone_abbreviations_list(); $i=1; foreach($arr as $key => $a){ foreach($a as $index => $value){ echo $i.'. Abbrevation : '.$key.', offset : '.$value['offset'].', timezone : '.$value['timezone_id']; echo "<br/>"; $i++; } } } ?>

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.2.60.0070.00716.55
7.2.00.0040.01119.35
7.1.200.0090.00015.67
7.1.70.0090.00616.79
7.1.60.0030.00717.09
7.1.50.0110.01116.83
7.1.00.0030.07722.30
7.0.200.0000.01516.77
7.0.100.0200.05320.08
7.0.90.0100.03719.95
7.0.80.0100.03720.13
7.0.70.0100.03319.94
7.0.60.0030.04319.94
7.0.50.0000.04320.30
7.0.40.0070.04020.19
7.0.30.0030.04320.04
7.0.20.0070.04320.14
7.0.10.0000.04720.12
7.0.00.0130.05020.06
5.6.280.0070.06321.13
5.6.250.0070.06320.74
5.6.240.0030.04320.70
5.6.230.0030.04020.60
5.6.220.0030.04020.64
5.6.210.0000.04320.60
5.6.200.0130.03720.96
5.6.190.0000.04721.07
5.6.180.0170.07321.11
5.6.170.0000.04720.94
5.6.160.0030.04321.05
5.6.150.0000.04721.05
5.6.140.0030.04321.06
5.6.130.0070.04021.04
5.6.120.0000.04721.11
5.6.110.0000.05021.07
5.6.100.0000.04722.62
5.6.90.0170.03321.03
5.6.80.0000.04320.47
5.6.70.0000.04320.42
5.6.60.0130.03020.42
5.6.50.0030.04020.46
5.6.40.0070.05320.32
5.6.30.0100.05320.50
5.6.20.0000.08020.43
5.6.10.0070.08022.05
5.6.00.0030.07720.40
5.5.380.0070.03720.35
5.5.370.0000.04320.41
5.5.360.0070.04020.43
5.5.350.0030.04320.32
5.5.340.0030.04320.79
5.5.330.0070.03720.93
5.5.320.0130.03720.87
5.5.310.0100.04720.93
5.5.300.0030.04320.76
5.5.290.0030.04320.91
5.5.280.0070.04320.88
5.5.270.0130.03720.72
5.5.260.0070.04020.82
5.5.250.0070.04020.73
5.5.240.0030.04020.02
5.5.230.0030.04320.11
5.5.220.0000.04320.25
5.5.210.0030.04320.18
5.5.200.0030.04020.09
5.5.190.0070.05020.24
5.5.180.0030.05320.15
5.5.160.0030.04020.23
5.5.150.0070.06720.21
5.5.140.0030.05020.13
5.5.130.0070.04320.25
5.5.120.0030.08720.15
5.5.110.0070.08020.12
5.5.100.0130.07320.16
5.5.90.0030.05720.16
5.5.80.0000.08020.07
5.5.70.0070.06320.08
5.5.60.0070.05320.06
5.5.50.0100.04320.05
5.5.40.0030.06720.08
5.5.30.0070.07320.09
5.5.20.0130.07020.08
5.5.10.0100.05319.98
5.5.00.0100.06320.01
5.4.450.0030.04319.30
5.4.440.0000.04019.46
5.4.430.0030.03719.32
5.4.420.0030.04019.55
5.4.410.0030.04019.16
5.4.400.0100.03019.08
5.4.390.0070.04019.03
5.4.380.0000.04719.22
5.4.370.0000.03719.05
5.4.360.0030.03718.82
5.4.350.0070.03319.03
5.4.340.0100.07719.05
5.4.320.0030.07318.90
5.4.310.0030.06318.84
5.4.300.0100.07019.04
5.4.290.0030.06018.89
5.4.280.0070.07319.04
5.4.270.0070.07319.11
5.4.260.0070.07018.78
5.4.250.0100.05319.04
5.4.240.0200.06319.07
5.4.230.0070.04019.07
5.4.220.0130.08019.03
5.4.210.0030.06319.11
5.4.200.0030.05018.98
5.4.190.0100.06019.02
5.4.180.0030.05718.98
5.4.170.0070.06019.12
5.4.160.0030.06319.02
5.4.150.0030.05018.96
5.4.140.0100.06316.23
5.4.130.0130.06016.22
5.4.120.0030.05316.31
5.4.110.0130.06716.21
5.4.100.0030.04716.41
5.4.90.0130.06016.23
5.4.80.0070.07316.37
5.4.70.0070.06316.39
5.4.60.0030.07316.40
5.4.50.0100.07016.36
5.4.40.0030.05716.24
5.4.30.0030.07316.18
5.4.20.0100.06716.40
5.4.10.0130.05716.28
5.4.00.0000.03715.46

preferences:
37.12 ms | 400 KiB | 5 Q