3v4l.org

run code in 300+ PHP versions simultaneously
<?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") ; asort($ceu) ; foreach($ceu as $country => $capital) { echo "The capital of $country is $capital \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.3.60.0110.00318.18
8.3.50.0090.00621.99
8.3.40.0110.00318.69
8.3.30.0060.00919.09
8.3.20.0040.00420.20
8.3.10.0050.00321.64
8.3.00.0000.00817.88
8.2.180.0100.01016.32
8.2.170.0110.01122.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0080.00021.05
8.2.110.0060.00322.32
8.2.100.0090.00318.09
8.2.90.0000.00719.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0020.00517.93
8.2.50.0060.00318.07
8.2.40.0060.00318.09
8.2.30.0000.00718.29
8.2.20.0040.00417.68
8.2.10.0000.00717.99
8.2.00.0000.00717.75
8.1.280.0170.00325.92
8.1.270.0090.00023.92
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.19
8.1.230.0110.00019.01
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00721.85
8.1.150.0040.00418.75
8.1.140.0040.00417.36
8.1.130.0000.00717.86
8.1.120.0000.00717.43
8.1.110.0040.00417.34
8.1.100.0040.00417.42
8.1.90.0070.00017.42
8.1.80.0040.00417.29
8.1.70.0020.00517.42
8.1.60.0000.00917.60
8.1.50.0000.00717.55
8.1.40.0000.00717.51
8.1.30.0040.00417.55
8.1.20.0030.00617.56
8.1.10.0040.00417.50
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00717.17
8.0.260.0030.00317.16
8.0.250.0070.00016.85
8.0.240.0040.00416.82
8.0.230.0030.00316.96
8.0.220.0070.00016.87
8.0.210.0000.00716.79
8.0.200.0060.00316.83
8.0.190.0000.00716.91
8.0.180.0000.00716.84
8.0.170.0000.00816.92
8.0.160.0040.00416.89
8.0.150.0040.00416.88
8.0.140.0000.00716.88
8.0.130.0000.00613.30
8.0.120.0060.00316.82
8.0.110.0000.00716.82
8.0.100.0000.00716.76
8.0.90.0040.00416.86
8.0.80.0100.00716.88
8.0.70.0040.00416.92
8.0.60.0040.00416.86
8.0.50.0000.00716.75
8.0.30.0120.00717.14
8.0.20.0110.00917.40
8.0.10.0070.00016.93
8.0.00.0060.01216.73
7.4.330.0000.00515.19
7.4.320.0000.00716.39
7.4.300.0040.00416.48
7.4.290.0000.00616.56
7.4.280.0000.00716.60
7.4.270.0030.00416.52
7.4.260.0000.00716.50
7.4.250.0000.00716.45
7.4.240.0050.00216.58
7.4.230.0030.00316.29
7.4.220.0080.00716.55
7.4.210.0100.01016.60
7.4.200.0000.00916.34
7.4.160.0160.00816.49
7.4.150.0130.00417.40
7.4.140.0090.01117.86
7.4.130.0100.00816.41
7.4.120.0070.01016.38
7.4.110.0050.01116.47
7.4.100.0130.00416.62
7.4.90.0060.01316.50
7.4.80.0120.00619.39
7.4.70.0170.00016.61
7.4.60.0070.01016.45
7.4.50.0030.00316.29
7.4.40.0120.00416.33
7.4.30.0080.00916.34
7.4.00.0110.00714.99
7.3.330.0030.00313.30
7.3.320.0050.00013.16
7.3.310.0040.00416.19
7.3.300.0060.00016.29
7.3.290.0070.00816.33
7.3.280.0120.00716.34
7.3.270.0130.00517.40
7.3.260.0120.00916.55
7.3.250.0100.00716.45
7.3.240.0070.01016.39
7.3.230.0130.00316.54
7.3.210.0110.00616.51
7.3.200.0100.01019.39
7.3.190.0090.00916.28
7.3.180.0000.01616.23
7.3.170.0090.00916.32
7.3.160.0120.00316.55
7.3.120.0100.00614.88
7.3.10.0060.00916.77
7.3.00.0000.01416.64
7.2.330.0120.00616.62
7.2.320.0070.01016.70
7.2.310.0120.00616.70
7.2.300.0090.00916.63
7.2.290.0130.00316.73
7.2.130.0070.00716.73
7.2.120.0040.01216.95
7.2.110.0040.00816.80
7.2.100.0000.01516.88
7.2.90.0060.00317.10
7.2.80.0000.01216.91
7.2.70.0000.01017.03
7.2.60.0030.00917.02
7.2.50.0040.00416.91
7.2.40.0060.00616.95
7.2.30.0000.01316.88
7.2.20.0040.00716.84
7.2.10.0080.00816.56
7.2.00.0020.01318.19
7.1.250.0040.00415.72
7.1.100.0030.01018.35
7.1.70.0070.00716.94
7.1.60.0040.01519.11
7.1.50.0230.01034.50
7.1.00.0030.07322.32
7.0.200.0000.00816.61
7.0.140.0070.07321.95
7.0.60.0100.07720.07
7.0.50.0030.04017.91
7.0.40.0030.07020.20
7.0.30.0300.06020.09
7.0.20.0200.04320.02
7.0.10.0030.04320.12
7.0.00.0070.08320.18
5.6.280.0070.07021.13
5.6.210.0030.04020.73
5.6.200.0100.07718.18
5.6.190.0030.04320.35
5.6.180.0330.07020.41
5.6.170.0230.04720.51
5.6.160.0070.05020.51
5.6.150.0000.05018.18
5.6.140.0130.07018.18
5.6.130.0130.07318.24
5.6.120.0070.09021.12
5.6.110.0000.09020.88
5.6.100.0030.04021.14
5.6.90.0030.08721.00
5.6.80.0170.06320.49
5.5.350.0230.03020.32
5.5.340.0070.03718.02
5.5.330.0030.05020.21
5.5.320.0330.07020.32
5.5.310.0330.06720.16
5.5.300.0070.04017.96
5.5.290.0030.04017.91
5.5.280.0030.05720.94
5.5.270.0070.04320.96
5.5.260.0100.06720.75
5.5.250.0030.08320.68
5.5.240.0030.08320.07
5.4.450.0930.06319.47
5.4.440.0070.06319.52
5.4.430.0270.05319.13
5.4.420.0300.05019.54
5.4.410.0200.04318.66
5.4.400.0270.05018.76
5.4.390.0300.05318.61
5.4.380.0200.05018.55
5.4.370.0000.04318.67
5.4.360.0070.03718.58
5.4.350.0080.03411.98
5.4.340.0060.04111.98
5.4.320.0040.04112.46
5.4.310.0070.04112.45
5.4.300.0070.03812.46
5.4.290.0030.04212.46
5.4.280.0110.04712.36
5.4.270.0060.03812.36
5.4.260.0070.03712.35
5.4.250.0040.04012.35
5.4.240.0040.05312.35
5.4.230.0060.03812.34
5.4.220.0030.04012.35
5.4.210.0110.03112.35
5.4.200.0070.03712.34
5.4.190.0050.04212.34
5.4.180.0050.03812.34
5.4.170.0100.03812.35
5.4.160.0060.03512.35
5.4.150.0060.03612.34
5.4.140.0060.03712.03
5.4.130.0080.03412.02
5.4.120.0090.03411.98
5.4.110.0050.04111.97
5.4.100.0100.03611.97
5.4.90.0060.03611.97
5.4.80.0050.03711.97
5.4.70.0050.03511.97
5.4.60.0040.03811.96
5.4.50.0100.03211.96
5.4.40.0030.03711.95
5.4.30.0070.03611.95
5.4.20.0070.03811.96
5.4.10.0070.03211.95
5.4.00.0040.03711.45
5.3.290.0060.04712.80
5.3.280.0070.03712.71
5.3.270.0120.03512.73
5.3.260.0030.04512.72
5.3.250.0070.04312.72
5.3.240.0080.03712.72
5.3.230.0070.03712.71
5.3.220.0110.04612.68
5.3.210.0060.04812.68
5.3.200.0050.03712.68
5.3.190.0090.03412.67
5.3.180.0040.03812.67
5.3.170.0080.03312.67
5.3.160.0050.03612.67
5.3.150.0090.03412.68
5.3.140.0050.03612.66
5.3.130.0080.03612.66
5.3.120.0080.03712.66
5.3.110.0040.04212.66
5.3.100.0060.03712.12
5.3.90.0060.03612.08
5.3.80.0070.04012.07
5.3.70.0060.03712.08
5.3.60.0080.03512.06
5.3.50.0060.03712.00
5.3.40.0030.04312.00
5.3.30.0050.04211.95
5.3.20.0130.03911.72
5.3.10.0080.03711.70
5.3.00.0070.03711.68
5.2.170.0060.0319.18
5.2.160.0060.0319.18
5.2.150.0080.0299.18
5.2.140.0090.0289.18
5.2.130.0050.0299.14
5.2.120.0020.0329.14
5.2.110.0050.0299.15
5.2.100.0070.0289.14
5.2.90.0050.0299.14
5.2.80.0040.0319.13
5.2.70.0050.0309.14
5.2.60.0040.0309.09
5.2.50.0050.0309.06
5.2.40.0040.0299.04
5.2.30.0050.0409.02
5.2.20.0050.0289.00
5.2.10.0050.0288.93
5.2.00.0050.0298.79
5.1.60.0050.0248.07
5.1.50.0050.0248.07
5.1.40.0060.0248.05
5.1.30.0030.0288.40
5.1.20.0050.0268.42
5.1.10.0030.0278.15
5.1.00.0020.0278.14
5.0.50.0050.0186.63
5.0.40.0040.0186.48
5.0.30.0020.0326.30
5.0.20.0020.0216.27
5.0.10.0050.0196.24
5.0.00.0050.0336.25
4.4.90.0020.0164.78
4.4.80.0070.0164.75
4.4.70.0050.0194.75
4.4.60.0040.0174.75
4.4.50.0020.0174.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0010.0184.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0050.0134.67
4.3.100.0020.0154.66
4.3.90.0050.0124.63
4.3.80.0040.0224.58
4.3.70.0060.0114.63
4.3.60.0040.0144.63
4.3.50.0040.0154.63
4.3.40.0040.0234.54
4.3.30.0030.0183.30
4.3.20.0030.0153.28
4.3.10.0060.0173.23
4.3.00.0130.0307.13

preferences:
55.54 ms | 401 KiB | 5 Q