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 $x => $x_value){ echo "The capital of " . $x . " is " .$x_value . "."; echo "<br/>"; } ?>

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.00716.63
8.3.50.0080.00922.04
8.3.40.0110.01118.71
8.3.30.0070.00719.04
8.3.20.0040.00420.25
8.3.10.0030.00620.39
8.3.00.0050.00319.13
8.2.180.0070.00718.05
8.2.170.0070.00722.96
8.2.160.0060.00820.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0060.00322.30
8.2.100.0110.00017.84
8.2.90.0090.00019.22
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0050.00218.09
8.2.30.0000.00719.43
8.2.20.0000.00817.56
8.2.10.0040.00418.18
8.2.00.0030.00617.81
8.1.280.0060.00925.92
8.1.270.0080.00024.00
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.18
8.1.230.0070.00419.10
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0060.00319.13
8.1.170.0030.00618.57
8.1.160.0030.00522.06
8.1.150.0050.00218.82
8.1.140.0050.00317.52
8.1.130.0080.00017.83
8.1.120.0000.00717.29
8.1.110.0090.00017.47
8.1.100.0030.00517.46
8.1.90.0070.00017.47
8.1.80.0020.00517.30
8.1.70.0000.00717.32
8.1.60.0060.00317.48
8.1.50.0000.00817.43
8.1.40.0070.00017.51
8.1.30.0040.00717.63
8.1.20.0050.00217.49
8.1.10.0000.00717.44
8.1.00.0000.00817.34
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0040.00418.56
8.0.270.0000.00717.26
8.0.260.0030.00317.19
8.0.250.0000.00716.85
8.0.240.0000.00716.96
8.0.230.0000.00816.84
8.0.220.0040.00416.80
8.0.210.0030.00316.80
8.0.200.0000.00717.00
8.0.190.0040.00416.86
8.0.180.0050.00216.80
8.0.170.0040.00416.83
8.0.160.0040.00416.88
8.0.150.0070.00016.83
8.0.140.0040.00416.83
8.0.130.0030.00313.37
8.0.120.0040.00416.91
8.0.110.0040.00416.86
8.0.100.0080.00016.77
8.0.90.0040.00416.95
8.0.80.0030.01616.88
8.0.70.0040.00416.69
8.0.60.0040.00416.75
8.0.50.0020.00516.95
8.0.30.0110.01117.02
8.0.20.0120.00717.40
8.0.10.0000.00717.08
8.0.00.0100.00816.86
7.4.330.0020.00215.00
7.4.320.0000.00616.65
7.4.300.0000.00716.42
7.4.290.0030.00316.59
7.4.280.0040.00416.50
7.4.270.0000.00716.41
7.4.260.0000.00716.50
7.4.250.0000.00716.63
7.4.240.0040.00416.56
7.4.230.0000.00716.37
7.4.220.0170.00316.54
7.4.210.0040.01116.54
7.4.200.0030.00316.63
7.4.160.0060.00916.53
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0160.00116.47
7.4.120.0100.00716.53
7.4.110.0060.01016.57
7.4.100.0140.00416.45
7.4.90.0030.01516.28
7.4.80.0170.00019.39
7.4.70.0030.01316.53
7.4.60.0100.00716.35
7.4.50.0040.00416.41
7.4.40.0100.00716.39
7.4.30.0030.01516.43
7.4.00.0000.01214.86
7.3.330.0040.00313.13
7.3.320.0030.00313.14
7.3.310.0030.00316.21
7.3.300.0040.00416.22
7.3.290.0100.01016.28
7.3.280.0050.01016.27
7.3.270.0120.00617.40
7.3.260.0060.01316.51
7.3.250.0110.00616.31
7.3.240.0080.00816.27
7.3.230.0080.00816.39
7.3.210.0150.00616.46
7.3.200.0110.01119.39
7.3.190.0090.01216.36
7.3.180.0060.01016.34
7.3.170.0110.00616.36
7.3.160.0060.01116.36
7.3.00.0030.00916.63
7.2.330.0170.00716.65
7.2.320.0120.00616.54
7.2.310.0000.01716.55
7.2.300.0130.00316.66
7.2.290.0060.01016.66
7.2.130.0110.00016.92
7.2.120.0070.00716.98
7.2.110.0030.01016.93
7.2.100.0030.01216.70
7.2.90.0070.01116.95
7.2.80.0030.01216.68
7.2.70.0040.00716.69
7.2.60.0030.01216.89
7.2.50.0060.00617.04
7.2.40.0090.00616.90
7.2.30.0060.00616.62
7.2.20.0060.00917.14
7.2.10.0120.00316.72
7.2.00.0100.00316.93
7.1.250.0110.00015.79
7.1.240.0030.01015.59
7.1.230.0060.00615.74
7.1.220.0000.00815.76
7.1.210.0070.00715.61
7.1.200.0110.00415.77
7.1.190.0060.00615.83
7.1.180.0070.00715.81
7.1.170.0080.00615.59
7.1.160.0040.01115.96
7.1.150.0000.01415.73
7.1.140.0040.00815.51
7.1.130.0030.01315.75
7.1.120.0030.01015.96
7.1.110.0030.01215.78
7.1.100.0030.00615.93
7.1.90.0030.00615.59
7.1.80.0090.00415.60
7.1.70.0040.00616.42
7.1.60.0020.01016.34
7.1.50.0070.01216.14
7.1.40.0030.01315.84
7.1.30.0130.00315.69
7.1.20.0080.00615.38
7.1.10.0060.00915.83
7.1.00.0050.04019.06
7.0.330.0060.00615.32
7.0.320.0060.00615.09
7.0.310.0030.00915.24
7.0.300.0040.00715.41
7.0.290.0030.00515.38
7.0.280.0060.00614.84
7.0.270.0100.00315.41
7.0.260.0040.00915.40
7.0.250.0110.00415.56
7.0.240.0090.00315.40
7.0.230.0030.01015.12
7.0.220.0100.00315.17
7.0.210.0100.00315.29
7.0.200.0040.00716.12
7.0.190.0030.01215.48
7.0.180.0040.00415.47
7.0.170.0060.00615.46
7.0.160.0030.01015.40
7.0.150.0040.01115.52
7.0.140.0060.03818.54
7.0.130.0080.00315.15
7.0.120.0000.01215.21
7.0.110.0050.00315.33
7.0.100.0210.03217.64
7.0.90.0200.04717.65
7.0.80.0200.04517.58
7.0.70.0250.04217.60
7.0.60.0230.03317.57
7.0.50.0170.05217.81
7.0.40.0070.04516.72
7.0.30.0070.04516.85
7.0.20.0070.04316.86
7.0.10.0070.04316.81
7.0.00.0120.04416.71
5.6.380.0000.01214.27
5.6.370.0070.00314.25
5.6.360.0030.00914.23
5.6.350.0110.00314.43
5.6.340.0030.01014.39
5.6.330.0090.00614.50
5.6.320.0060.00314.30
5.6.310.0060.00314.61
5.6.300.0060.00613.87
5.6.290.0080.00414.15
5.6.280.0070.03917.61
5.6.270.0080.00814.23
5.6.260.0060.00614.61
5.6.250.0020.04717.41
5.6.240.0050.04717.43
5.6.230.0110.03517.34
5.6.220.0080.04217.39
5.6.210.0090.04117.62
5.6.200.0080.04317.73
5.6.190.0050.04917.58
5.6.180.0080.04117.69
5.6.170.0090.04417.52
5.6.160.0070.04717.54
5.6.150.0100.04217.74
5.6.140.0000.03317.76
5.6.130.0050.04917.81
5.6.120.0140.04217.80
5.6.110.0070.04217.71
5.6.100.0050.04517.73
5.6.90.0080.03517.50
5.6.80.0130.04017.24
5.6.70.0100.04217.09
5.6.60.0100.04217.34
5.6.50.0070.03717.33
5.6.40.0070.04517.44
5.6.30.0070.03517.38
5.6.20.0110.03617.31
5.6.10.0070.03617.35
5.6.00.0070.04017.28
5.5.380.0100.03215.64
5.5.370.0050.04315.72
5.5.360.0010.02815.68
5.5.350.0050.04415.79
5.5.340.0050.04115.88
5.5.330.0070.04015.89
5.5.320.0050.04215.87
5.5.310.0020.04715.95
5.5.300.0080.03415.89
5.5.290.0000.04815.96
5.5.280.0030.03915.79
5.5.270.0020.04515.89
5.5.260.0100.03915.89
5.5.250.0050.03815.73
5.5.240.0030.04515.65
5.5.230.0050.03215.60
5.5.220.0050.04015.69
5.5.210.0080.04015.57
5.5.200.0070.04115.58
5.5.190.0080.04115.63
5.5.180.0080.03715.52
5.5.170.0090.00010.90
5.5.160.0060.04015.49
5.5.150.0040.02715.56
5.5.140.0050.04315.57
5.5.130.0040.04215.71
5.5.120.0060.04115.64
5.5.110.0090.03915.45
5.5.100.0090.04115.50
5.5.90.0070.03215.51
5.5.80.0030.03915.49
5.5.70.0050.04015.48
5.5.60.0090.03515.45
5.5.50.0030.03815.45
5.5.40.0110.03815.52
5.5.30.0080.03815.53
5.5.20.0100.03515.57
5.5.10.0080.03815.46
5.5.00.0060.04315.45
5.4.450.0010.04515.23
5.4.440.0050.02715.03
5.4.430.0050.04115.17
5.4.420.0100.04215.10
5.4.410.0070.04515.06
5.4.400.0030.04315.06
5.4.390.0050.04015.01
5.4.380.0050.04114.98
5.4.370.0030.04114.96
5.4.360.0050.04414.90
5.4.350.0010.04815.03
5.4.340.0080.04114.84
5.4.330.0070.00310.90
5.4.320.0050.04114.83
5.4.310.0030.02315.02
5.4.300.0070.04115.05
5.4.290.0030.03814.96
5.4.280.0100.03515.04
5.4.270.0050.04214.97
5.4.260.0070.03814.92
5.4.250.0070.04214.94
5.4.240.0030.04215.02
5.4.230.0050.03815.03
5.4.220.0070.04215.05
5.4.210.0030.04414.93
5.4.200.0090.03614.96
5.4.190.0000.04614.83
5.4.180.0020.04414.84
5.4.170.0080.04314.99
5.4.160.0080.03814.92
5.4.150.0060.03914.92
5.4.140.0090.03813.58
5.4.130.0030.04413.63
5.4.120.0100.03313.61
5.4.110.0060.02513.59
5.4.100.0060.02213.66
5.4.90.0070.03613.58
5.4.80.0000.03913.60
5.4.70.0020.03313.64
5.4.60.0070.03513.57
5.4.50.0070.03613.66
5.4.40.0100.03513.63
5.4.30.0050.02313.55
5.4.20.0030.02813.62
5.4.10.0090.03513.54
5.4.00.0050.03613.36
5.3.290.0070.03812.78
5.3.280.0050.04512.71
5.3.270.0060.03312.66
5.3.260.0100.03812.75
5.3.250.0030.04512.73
5.3.240.0100.03612.75
5.3.230.0030.04012.68
5.3.220.0050.03712.70
5.3.210.0050.02112.67
5.3.200.0110.02012.66
5.3.190.0050.04012.71
5.3.180.0030.03912.66
5.3.170.0050.03512.66
5.3.160.0070.02812.72
5.3.150.0070.03612.66
5.3.140.0080.03512.72
5.3.130.0050.01812.69
5.3.120.0030.04312.70
5.3.110.0050.03812.65
5.3.100.0000.04212.46
5.3.90.0080.04012.41
5.3.80.0050.03712.45
5.3.70.0000.04212.44
5.3.60.0120.03412.45
5.3.50.0040.04412.31
5.3.40.0050.03712.30
5.3.30.0030.03512.33
5.3.20.0040.03612.22
5.3.10.0030.03912.27
5.3.00.0080.03112.27
5.2.170.0030.03511.55
5.2.160.0060.02511.55
5.2.150.0070.03211.55
5.2.140.0060.02811.55
5.2.130.0030.03211.55
5.2.120.0080.02711.55
5.2.110.0030.03711.55
5.2.100.0070.03011.55
5.2.90.0050.03211.55
5.2.80.0070.03011.55
5.2.70.0030.03211.55
5.2.60.0030.02811.55
5.2.50.0040.03511.55
5.2.40.0080.02811.55
5.2.30.0080.02811.55
5.2.20.0070.03011.55
5.2.10.0020.03211.55
5.2.00.0070.02711.55
5.1.60.0020.02811.55
5.1.50.0060.02311.55
5.1.40.0030.02811.55
5.1.30.0020.03311.55
5.1.20.0030.02211.55
5.1.10.0040.02611.55
5.1.00.0010.02311.55
5.0.50.0030.02111.55
5.0.40.0000.02211.55
5.0.30.0070.03111.55
5.0.20.0000.02011.55
5.0.10.0040.02511.55
5.0.00.0070.03211.55
4.4.90.0080.01311.55
4.4.80.0070.01611.55
4.4.70.0050.01611.55
4.4.60.0020.01811.55
4.4.50.0030.01611.55
4.4.40.0020.02911.55
4.4.30.0070.01011.55
4.4.20.0000.02111.55
4.4.10.0030.02011.55
4.4.00.0010.02811.55
4.3.110.0030.01811.55
4.3.100.0020.02011.55
4.3.90.0020.01511.55
4.3.80.0050.02711.55
4.3.70.0000.02111.55
4.3.60.0000.02011.55
4.3.50.0030.01511.55
4.3.40.0020.03011.55
4.3.30.0030.01111.55
4.3.20.0020.02111.55
4.3.10.0020.02011.55
4.3.00.0000.01711.55

preferences:
45.17 ms | 401 KiB | 5 Q