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"); foreach( $ceu as $key => $value ) { echo "The capital of {$value} is {$key}"; }

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.0070.01016.50
8.3.50.0110.00522.00
8.3.40.0090.00618.77
8.3.30.0070.00719.09
8.3.20.0070.00019.93
8.3.10.0070.00023.66
8.3.00.0070.00417.34
8.2.180.0120.00318.05
8.2.170.0140.00422.96
8.2.160.0110.00420.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.58
8.2.110.0080.00022.26
8.2.100.0080.00417.78
8.2.90.0000.00819.10
8.2.80.0040.00417.97
8.2.70.0050.00517.50
8.2.60.0000.00819.76
8.2.50.0000.01118.07
8.2.40.0030.00519.88
8.2.30.0070.00018.06
8.2.20.0040.00417.75
8.2.10.0030.00518.15
8.2.00.0080.00017.73
8.1.280.0110.00725.92
8.1.270.0040.01122.19
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0050.00523.71
8.1.230.0030.00719.22
8.1.220.0060.00317.79
8.1.210.0050.00318.77
8.1.200.0080.00417.23
8.1.190.0040.00417.23
8.1.180.0040.00718.10
8.1.170.0060.00318.50
8.1.160.0040.00422.02
8.1.150.0040.00418.52
8.1.140.0070.00017.32
8.1.130.0070.00017.75
8.1.120.0000.00717.47
8.1.110.0050.00217.35
8.1.100.0070.00017.37
8.1.90.0070.00017.48
8.1.80.0000.00817.51
8.1.70.0070.00017.44
8.1.60.0080.00017.55
8.1.50.0040.00417.47
8.1.40.0040.00417.52
8.1.30.0050.00317.59
8.1.20.0040.00417.52
8.1.10.0000.00817.51
8.1.00.0030.00617.36
8.0.300.0030.00620.64
8.0.290.0040.00416.91
8.0.280.0040.00418.36
8.0.270.0050.00317.32
8.0.260.0000.00617.17
8.0.250.0000.00717.00
8.0.240.0000.00916.96
8.0.230.0080.00016.93
8.0.220.0030.00316.79
8.0.210.0000.00716.88
8.0.200.0000.00616.84
8.0.190.0030.00616.96
8.0.180.0030.00516.84
8.0.170.0040.00416.93
8.0.160.0000.00816.89
8.0.150.0040.00416.74
8.0.140.0000.00916.75
8.0.130.0000.00613.28
8.0.120.0000.00816.75
8.0.110.0020.00516.80
8.0.100.0030.00616.85
8.0.90.0040.00416.95
8.0.80.0090.00616.87
8.0.70.0000.00717.01
8.0.60.0080.00016.80
8.0.50.0040.00416.96
8.0.30.0100.01317.09
8.0.20.0110.00817.40
8.0.10.0030.00516.87
8.0.00.0060.01516.75
7.4.330.0030.00315.20
7.4.320.0060.00016.45
7.4.300.0030.00616.58
7.4.290.0070.00016.58
7.4.280.0000.00816.59
7.4.270.0030.00416.50
7.4.260.0030.00316.60
7.4.250.0040.00416.51
7.4.240.0020.00516.59
7.4.230.0030.00316.60
7.4.220.0120.00816.55
7.4.210.0080.00816.58
7.4.200.0030.00316.39
7.4.190.0030.00316.55
7.4.160.0150.00316.66
7.4.150.0150.00617.40
7.4.140.0130.00617.86
7.4.130.0080.01116.46
7.4.120.0130.01016.40
7.4.110.0040.01416.52
7.4.100.0030.01516.53
7.4.90.0060.01116.39
7.4.80.0130.00319.39
7.4.70.0130.00316.41
7.4.60.0100.00616.26
7.4.50.0070.00016.63
7.4.40.0130.00316.35
7.4.30.0030.01316.38
7.4.00.0030.01215.11
7.3.330.0050.00013.23
7.3.320.0030.00313.29
7.3.310.0020.00516.36
7.3.300.0040.00416.16
7.3.290.0060.00816.29
7.3.280.0070.01116.32
7.3.270.0160.00617.40
7.3.260.0100.00716.55
7.3.250.0110.00516.48
7.3.240.0110.01116.56
7.3.230.0070.01016.39
7.3.210.0110.00716.35
7.3.200.0060.01119.39
7.3.190.0120.00616.52
7.3.180.0060.01516.17
7.3.170.0190.00316.40
7.3.160.0130.00316.13
7.3.120.0080.00814.99
7.2.330.0060.01216.52
7.2.320.0060.01516.65
7.2.310.0060.01216.63
7.2.300.0060.01016.55
7.2.290.0060.01116.68
7.2.00.0030.00619.02
7.1.100.0030.00918.19
7.1.70.0060.00917.10
7.1.60.0100.01319.46
7.1.50.0130.00716.96
7.1.00.0070.07322.30
7.0.200.0000.00916.59
7.0.140.0000.07721.95
7.0.60.0070.08019.90
7.0.50.0200.07017.89
7.0.40.0030.04320.26
7.0.30.0230.07320.22
7.0.20.0300.08320.09
7.0.10.0070.08320.20
7.0.00.0070.07320.01
5.6.280.0100.06721.08
5.6.210.0130.06320.55
5.6.200.0100.07718.18
5.6.190.0030.04320.39
5.6.180.0200.04020.49
5.6.170.0170.04720.51
5.6.160.0100.07320.71
5.6.150.0070.08318.23
5.6.140.0070.07018.21
5.6.130.0070.07018.21
5.6.120.0100.08021.00
5.6.110.0170.07721.04
5.6.100.0070.08721.14
5.6.90.0030.07321.13
5.6.80.0000.04320.50
5.5.350.0270.08020.41
5.5.340.0070.08317.97
5.5.330.0070.05020.36
5.5.320.0030.06320.13
5.5.310.0170.04320.30
5.5.300.0100.07717.94
5.5.290.0100.05717.91
5.5.280.0030.04720.87
5.5.270.0100.08320.72
5.5.260.0070.08020.64
5.5.250.0230.04720.54
5.5.240.0200.07720.15
5.4.450.0130.05319.57
5.4.440.0700.06719.48
5.4.430.1030.05719.46
5.4.420.0870.08019.32
5.4.410.1030.05019.28
5.4.400.1030.04719.20
5.4.390.0800.04719.27
5.4.380.0100.05718.57
5.4.370.0130.05018.74
5.4.360.0100.05718.59
5.4.350.0130.05318.77
5.4.340.0130.05318.63
5.4.320.0060.03712.46
5.4.310.0070.04912.45
5.4.300.0140.04712.46
5.4.290.0140.04112.45
5.4.280.0090.04712.35
5.4.270.0040.05512.36
5.4.260.0360.13412.35
5.4.250.0350.10512.36
5.4.240.0130.07712.36
5.4.230.0080.05612.35
5.4.220.0120.05912.35
5.4.210.0140.06312.35
5.4.200.0110.07412.35
5.4.190.0120.07112.34
5.4.180.0110.06212.34
5.4.170.0200.04912.36
5.4.160.0170.05412.35
5.4.150.0100.05812.35
5.4.140.0070.06812.03
5.4.130.0040.06512.02
5.4.120.0270.06411.98
5.4.110.0120.05411.97
5.4.100.0100.06711.97
5.4.90.0080.05911.97
5.4.80.0130.06311.97
5.4.70.0180.08011.97
5.4.60.0150.07311.96
5.4.50.0150.07911.97
5.4.40.0410.10311.96
5.4.30.0300.07711.95
5.4.20.0110.06311.95
5.4.10.0140.07511.96
5.4.00.0100.07811.45
5.3.290.0080.05412.80
5.3.280.0120.06712.71
5.3.270.0160.05712.73
5.3.260.0140.07812.71
5.3.250.0110.09012.72
5.3.240.0070.04312.72
5.3.230.0250.05412.70
5.3.220.0130.05212.68
5.3.210.0130.06912.68
5.3.200.0140.08812.68
5.3.190.0260.08712.68
5.3.180.0100.05812.68
5.3.170.0080.06112.67
5.3.160.0080.06312.67
5.3.150.0090.05812.67
5.3.140.0150.05512.66
5.3.130.0110.07512.66
5.3.120.0090.05912.65
5.3.110.0120.07412.66
5.3.100.0310.06412.12
5.3.90.0310.11412.08
5.3.80.0100.05312.07
5.3.70.0170.09312.07
5.3.60.0220.08212.06
5.3.50.0200.07112.00
5.3.40.0070.06512.00
5.3.30.0250.07011.95
5.3.20.0110.07811.72
5.3.10.0130.06711.70
5.3.00.0100.05611.68
5.2.170.0070.0639.18
5.2.160.0050.0369.18
5.2.150.0040.0369.18
5.2.140.0040.0379.18
5.2.130.0060.0319.14
5.2.120.0060.0309.14
5.2.110.0130.0339.14
5.2.100.0070.0299.14
5.2.90.0070.0389.14
5.2.80.0120.0689.14
5.2.70.0150.0909.14
5.2.60.0220.0679.09
5.2.50.0060.0339.06
5.2.40.0100.0289.04
5.2.30.0070.0319.01
5.2.20.0070.0319.00
5.2.10.0260.0318.93
5.2.00.0050.0338.79
5.1.60.0060.0278.07
5.1.50.0140.0338.07
5.1.40.0060.0268.05
5.1.30.0070.0428.40
5.1.20.0220.0468.42
5.1.10.0160.0578.15
5.1.00.0140.0568.14
5.0.50.0110.0286.63
5.0.40.0070.0226.48
5.0.30.0110.0496.30
5.0.20.0040.0296.27
5.0.10.0050.0246.24
5.0.00.0070.0546.23
4.4.90.0080.0224.78
4.4.80.0040.0224.75
4.4.70.0020.0204.75
4.4.60.0050.0154.75
4.4.50.0030.0174.77
4.4.40.0060.0234.71
4.4.30.0020.0174.75
4.4.20.0060.0164.84
4.4.10.0070.0224.85
4.4.00.0050.0334.75
4.3.110.0050.0204.67
4.3.100.0100.0134.66
4.3.90.0110.0104.63
4.3.80.0030.0264.58
4.3.70.0050.0144.63
4.3.60.0060.0154.63
4.3.50.0060.0194.63
4.3.40.0040.0324.54
4.3.30.0120.0443.29
4.3.20.0050.0233.27
4.3.10.0000.0293.22
4.3.00.0270.01316.04

preferences:
46.33 ms | 401 KiB | 5 Q