3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels", "Denmark"=>"Copenhagen", "Finland"=>"Helsinki", "France" => "Paris", "Slovakia"=>"Bratislava", "Slovenia"=>"Ljubljana", "Germany" => "Berlin", "Greece" => "Athens", "Ireland"=>"Dublin", "Netherlands"=>"Amsterdam", "Portugal"=>"Lisbon", "Spain"=>"Madrid", "Sweden"=>"Stockholm", "United Kingdom"=>"London", "Cyprus"=>"Nicosia", "Lithuania"=>"Vilnius", "Czech Republic"=>"Prague", "Estonia"=>"Tallin", "Hungary"=>"Budapest", "Latvia"=>"Riga", "Malta"=>"Valetta", "Austria" => "Vienna", "Poland"=>"Warsaw"); foreach($ceu as $country => $capital) { echo "The $country capital is $capital \n"; } ?>
based on FoDXa

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0030.01019.42
7.1.100.0000.00918.29
7.1.70.0040.00416.89
7.1.60.0070.00719.46
7.1.50.0030.02016.85
7.1.00.0030.07722.40
7.0.200.0000.00716.40
7.0.140.0000.07722.00
7.0.60.0100.05320.01
7.0.50.0130.08017.81
7.0.40.0070.04320.04
7.0.30.0430.04320.12
7.0.20.0270.07720.20
7.0.10.0130.06019.95
7.0.00.0130.04720.32
5.6.280.0030.07021.02
5.6.210.0100.07720.51
5.6.200.0070.04018.18
5.6.190.0070.04320.27
5.6.180.0170.04720.67
5.6.170.0130.06320.71
5.6.160.0170.07020.46
5.6.150.0030.07318.18
5.6.140.0170.07318.25
5.6.130.0030.07718.13
5.6.120.0070.08721.02
5.6.110.0200.07021.14
5.6.100.0070.08320.98
5.6.90.0100.05020.95
5.6.80.0100.07720.38
5.6.70.4530.04020.39
5.5.350.0200.07320.45
5.5.340.0130.08017.99
5.5.330.0170.08320.40
5.5.320.0300.04020.34
5.5.310.0230.07320.31
5.5.300.0070.04717.95
5.5.290.0070.05018.01
5.5.280.0030.09320.87
5.5.270.0200.07020.86
5.5.260.0170.07320.84
5.5.250.0030.07320.49
5.5.240.4300.03020.18
5.4.450.0370.04319.14
5.4.440.0170.05319.41
5.4.430.0330.04319.40
5.4.420.0530.04719.25
5.4.410.0600.03319.00
5.4.400.0270.03719.09
5.4.390.0330.05019.25
5.4.380.0370.05018.68
5.4.370.0470.06018.67
5.4.360.0430.04318.57
5.4.350.0470.05718.64
5.4.340.0300.05318.64
5.4.320.0050.03712.46
5.4.310.0070.03712.46
5.4.300.0060.03712.46
5.4.290.0110.03512.46
5.4.280.0080.04512.35
5.4.270.0060.03512.36
5.4.260.0050.04712.35
5.4.250.0070.03912.36
5.4.240.0110.03512.36
5.4.230.0080.03712.34
5.4.220.0100.03812.34
5.4.210.0060.03512.34
5.4.200.0040.04012.35
5.4.190.0040.03812.34
5.4.180.0070.03512.34
5.4.170.0040.03812.35
5.4.160.0060.03612.35
5.4.150.0070.03612.34
5.4.140.0070.03712.03
5.4.130.0090.03212.02
5.4.120.0060.03511.97
5.4.110.0070.03411.97
5.4.100.0110.03111.97
5.4.90.0090.03411.97
5.4.80.0080.03511.97
5.4.70.0090.03111.97
5.4.60.0060.03711.96
5.4.50.0040.03811.96
5.4.40.0070.03311.95
5.4.30.0050.03711.95
5.4.20.0090.04111.95
5.4.10.0070.03611.96
5.4.00.0050.03511.44
5.3.290.0050.04512.80
5.3.280.0050.03912.71
5.3.270.0020.04312.72
5.3.260.0080.03712.72
5.3.250.0050.03812.72
5.3.240.0050.03912.72
5.3.230.0050.03912.70
5.3.220.0070.03612.68
5.3.210.0080.03712.68
5.3.200.0070.04312.68
5.3.190.0070.04812.68
5.3.180.0060.03612.67
5.3.170.0040.03912.67
5.3.160.0080.03512.68
5.3.150.0070.03712.67
5.3.140.0080.03512.66
5.3.130.0100.04312.66
5.3.120.0060.04112.65
5.3.110.0070.03912.65
5.3.100.0100.03312.12
5.3.90.0100.03312.08
5.3.80.0070.03612.08
5.3.70.0070.03612.08
5.3.60.0110.03212.07
5.3.50.0070.03912.00
5.3.40.0030.04412.00
5.3.30.0080.03311.94
5.3.20.0060.03611.73
5.3.10.0060.03811.70
5.3.00.0030.03911.68
5.2.170.0080.0379.18
5.2.160.0060.0309.18
5.2.150.0060.0299.18
5.2.140.0060.0299.18
5.2.130.0070.0279.14
5.2.120.0080.0269.14
5.2.110.0060.0299.15
5.2.100.0040.0299.14
5.2.90.0090.0259.14
5.2.80.0040.0309.14
5.2.70.0080.0349.14
5.2.60.0040.0309.09
5.2.50.0040.0309.06
5.2.40.0090.0249.04
5.2.30.0030.0319.02
5.2.20.0030.0309.00
5.2.10.0040.0288.93
5.2.00.0070.0278.79
5.1.60.0030.0268.07
5.1.50.0010.0288.07
5.1.40.0020.0298.05
5.1.30.0050.0258.40
5.1.20.0050.0268.42
5.1.10.0060.0248.15
5.1.00.0020.0288.14
5.0.50.0030.0216.63
5.0.40.0040.0196.48
5.0.30.0050.0296.30
5.0.20.0040.0196.27
5.0.10.0020.0206.25
5.0.00.0010.0326.24
4.4.90.0030.0154.78
4.4.80.0020.0154.76
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0010.0274.70
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0020.0174.85
4.4.00.0050.0224.76
4.3.110.0020.0174.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0040.0124.63
4.3.60.0040.0134.63
4.3.50.0030.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.29
4.3.20.0010.0173.27
4.3.10.0040.0163.22
4.3.00.0000.02014.93