3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<html>"; echo "<title>HTML with PHP</title>"; echo "<b>My Example</b>"; $apiKey = "c2bcc89a-7355-4909-b729-5ed52f0f7f11"; // get the basic summoner info $result = file_get_contents("http://status.leagueoflegends.com/shards/euw"); $stats = json_decode($result); foreach($stats->services as $stato){ $condizione=$stato->status; $servizio=$stato->name; print $servizio; print " "; print $condizione;print " "; } // var_dump($summoner); print "<i>Print works too!</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)
8.3.80.0030.00619.05
8.3.70.0040.01516.74
8.3.60.0110.00316.98
8.3.50.0100.00822.06
8.3.40.0130.00319.10
8.3.30.0120.00619.21
8.3.20.0080.00020.71
8.3.10.0090.00022.28
8.3.00.0090.00019.46
8.2.200.0040.00416.75
8.2.190.0190.00316.75
8.2.180.0070.01117.00
8.2.170.0110.00419.04
8.2.160.0090.00622.96
8.2.150.0030.00625.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00321.15
8.2.110.0100.00021.37
8.2.100.0110.00019.76
8.2.90.0000.00820.77
8.2.80.0040.00420.72
8.2.70.0030.00618.16
8.2.60.0000.00818.34
8.2.50.0000.00818.10
8.2.40.0040.00420.73
8.2.30.0080.00021.11
8.2.20.0000.00817.93
8.2.10.0030.00518.20
8.2.00.0030.00617.91
8.1.290.0030.00630.84
8.1.280.0090.01225.92
8.1.270.0040.01119.08
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0030.00622.37
8.1.230.0000.01121.01
8.1.220.0060.00317.91
8.1.210.0000.00819.15
8.1.200.0060.00317.48
8.1.190.0000.00817.64
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0030.00519.04
8.1.150.0050.00318.87
8.1.140.0000.00719.72
8.1.130.0000.00717.90
8.1.120.0050.00217.70
8.1.110.0050.00317.62
8.1.100.0000.00717.61
8.1.90.0000.00717.69
8.1.80.0040.00417.66
8.1.70.0050.00317.54
8.1.60.0060.00617.67
8.1.50.0000.00817.54
8.1.40.0070.00317.66
8.1.30.0030.00617.64
8.1.20.0040.00417.68
8.1.10.0080.00017.71
8.1.00.0030.00517.58
8.0.300.0000.00720.20
8.0.290.0000.00816.86
8.0.280.0040.00418.71
8.0.270.0050.00317.53
8.0.260.0030.00317.61
8.0.250.0030.00317.21
8.0.240.0070.00017.07
8.0.230.0040.00417.23
8.0.220.0000.00717.14
8.0.210.0040.00417.14
8.0.200.0040.00417.18
8.0.190.0040.00417.21
8.0.180.0020.00517.04
8.0.170.0000.00817.25
8.0.160.0050.00217.26
8.0.150.0030.00617.05
8.0.140.0030.00717.10
8.0.130.0030.00313.78
8.0.120.0080.00017.09
8.0.110.0030.00517.23
8.0.100.0040.00417.03
8.0.90.0050.00317.11
8.0.80.0030.01517.28
8.0.70.0080.00017.13
8.0.60.0080.00017.21
8.0.50.0080.00017.22
8.0.30.0120.01317.38
8.0.20.0090.01117.51
8.0.10.0000.00717.24
8.0.00.0110.00716.95
7.4.330.0000.00515.48
7.4.320.0030.00316.78
7.4.300.0000.00616.66
7.4.290.0000.00716.79
7.4.280.0030.00516.73
7.4.270.0000.01016.84
7.4.260.0040.00416.60
7.4.250.0040.00416.80
7.4.240.0040.00416.76
7.4.230.0000.00716.77
7.4.220.0130.00616.80
7.4.210.0030.01316.74
7.4.200.0040.00416.64
7.4.160.0130.00716.69
7.4.150.0110.00717.40
7.4.140.0050.01317.86
7.4.130.0110.00716.65
7.4.120.0160.00216.85
7.4.110.0130.00716.84
7.4.100.0060.01216.84
7.4.90.0070.01516.58
7.4.80.0120.00619.39
7.4.70.0080.01516.66
7.4.60.0070.01716.63
7.4.50.0000.00516.63
7.4.40.0100.01516.79
7.4.30.0120.01216.58
7.4.10.0110.00715.13
7.4.00.0110.00715.30
7.3.330.0080.00013.25
7.3.320.0000.00713.51
7.3.310.0080.00016.55
7.3.300.0040.00416.41
7.3.290.0100.00616.49
7.3.280.0050.01216.55
7.3.270.0070.01117.40
7.3.260.0090.01616.70
7.3.250.0090.00916.60
7.3.240.0120.01216.45
7.3.230.0120.01216.54
7.3.210.0120.00616.56
7.3.200.0080.00819.39
7.3.190.0060.01316.70
7.3.180.0100.00716.77
7.3.170.0000.02216.55
7.3.160.0140.00416.59
7.3.130.0040.00815.04
7.3.120.0090.00915.08
7.3.110.0050.01214.92
7.3.100.0060.01015.19
7.3.90.0030.00915.05
7.3.80.0070.00815.08
7.3.70.0090.00615.04
7.3.60.0100.00714.74
7.3.50.0020.00814.99
7.3.40.0030.01315.02
7.3.30.0020.01014.84
7.3.20.0060.00916.83
7.3.10.0080.00716.49
7.3.00.0050.00816.60
7.2.330.0110.00617.03
7.2.320.0140.00416.88
7.2.310.0070.01716.54
7.2.300.0150.00316.93
7.2.290.0060.01616.75
7.2.260.0070.01014.93
7.2.250.0040.01515.26
7.2.240.0050.01315.23
7.2.230.0090.00815.12
7.2.220.0090.01015.02
7.2.210.0050.01015.19
7.2.200.0050.01115.37
7.2.190.0050.01015.20
7.2.180.0050.00715.24
7.2.170.0080.00915.19
7.2.160.0050.01115.11
7.2.150.0030.01216.96
7.2.140.0040.00817.00
7.2.130.0090.00716.98
7.2.120.0100.00716.89
7.2.110.0090.01016.94
7.2.100.0080.00817.14
7.2.90.0060.01417.04
7.2.80.0120.00816.95
7.2.70.0060.01116.96
7.2.60.0090.00717.00
7.2.50.0070.00717.02
7.2.40.0060.01017.01
7.2.30.0080.00717.14
7.2.20.0050.00816.90
7.2.10.0050.01017.02
7.2.00.0070.00917.65
7.1.330.0070.01016.00
7.1.320.0070.01016.06
7.1.310.0050.01016.15
7.1.300.0030.01016.05
7.1.290.0050.00916.17
7.1.280.0020.01316.03
7.1.270.0050.00615.86
7.1.260.0070.00415.79
7.1.250.0080.00615.79
7.1.240.0070.01115.81
7.1.230.0070.00716.07
7.1.220.0060.00615.98
7.1.210.0070.00716.11
7.1.200.0090.00416.21
7.1.190.0030.00616.01
7.1.180.0070.00716.15
7.1.170.0000.01416.14
7.1.160.0090.00015.81
7.1.150.0070.00715.73
7.1.140.0070.00716.05
7.1.130.0000.01516.10
7.1.120.0000.01015.86
7.1.110.0100.00315.93
7.1.100.0030.01017.29
7.1.90.0030.00916.13
7.1.80.0070.00716.21
7.1.70.0040.00816.82
7.1.60.0090.01017.72
7.1.50.0050.01516.81
7.1.40.0090.00316.08
7.1.30.0000.01415.68
7.1.20.0000.00916.11
7.1.10.0000.01415.99
7.1.00.0100.03719.45
7.0.330.0070.00315.75
7.0.320.0030.01315.38
7.0.310.0070.00715.66
7.0.300.0080.00315.29
7.0.290.0030.01015.63
7.0.280.0060.00915.74
7.0.270.0120.00615.70
7.0.260.0030.00615.58
7.0.250.0110.00315.72
7.0.240.0030.01215.78
7.0.230.0090.00615.86
7.0.220.0000.00915.37
7.0.210.0030.00915.65
7.0.200.0050.00616.34
7.0.190.0030.00715.65
7.0.180.0070.00415.67
7.0.170.0060.00615.80
7.0.160.0000.01515.29
7.0.150.0030.01015.73
7.0.140.0030.03018.97
7.0.130.0060.00915.48
7.0.120.0050.00515.52
7.0.110.0080.00415.80
7.0.100.0070.00715.50
7.0.90.0080.00315.80
7.0.80.0060.00915.45
7.0.70.0000.00915.75
7.0.60.0090.04017.79
7.0.50.0030.04516.79
7.0.40.0050.03117.00
7.0.30.0030.04917.11
7.0.20.0180.04317.05
7.0.10.0020.02817.12
7.0.00.0070.02317.12
5.6.400.0060.00914.36
5.6.390.0040.00814.38
5.6.380.0090.00314.30
5.6.370.0080.00414.75
5.6.360.0090.00914.22
5.6.350.0030.00914.59
5.6.340.0000.01114.61
5.6.330.0060.01014.60
5.6.320.0060.01014.36
5.6.310.0040.00914.25
5.6.300.0100.00314.23
5.6.290.0070.01014.27
5.6.280.0060.04318.03
5.6.270.0060.00614.82
5.6.260.0140.00014.48
5.6.250.0090.00614.52
5.6.240.0070.00714.33
5.6.230.0060.00914.24
5.6.220.0070.00714.61
5.6.210.0050.02517.76
5.6.200.0060.02816.57
5.6.190.0070.02717.67
5.6.180.0170.03417.78
5.6.170.0180.03817.63
5.6.160.0120.03517.71
5.6.150.0030.04916.59
5.6.140.0070.02316.50
5.6.130.0060.04616.60
5.6.120.0000.02617.83
5.6.110.0100.02317.89
5.6.100.0050.03917.88
5.6.90.0080.05018.00
5.6.80.0070.04417.58
5.6.70.0030.01214.45
5.6.60.0000.01214.51
5.6.50.0120.00614.71
5.6.40.0060.00914.30
5.6.30.0090.00614.52
5.6.20.0100.00314.41
5.6.10.0030.01314.31
5.6.00.0030.00914.21
5.5.380.0060.00914.18
5.5.370.0060.00314.48
5.5.360.0070.00714.44
5.5.350.2120.03017.55
5.5.340.0100.03716.62
5.5.330.0070.02217.59
5.5.320.0150.02517.60
5.5.310.0150.03117.44
5.5.300.0070.04016.51
5.5.290.0050.03016.39
5.5.280.0050.04817.97
5.5.270.0080.02217.70
5.5.260.0100.04017.87
5.5.250.0080.04417.88
5.5.240.0140.03717.45
5.5.230.0000.01314.68
5.5.220.0130.00014.00
5.5.210.0150.00414.33
5.5.200.0070.00314.48
5.5.190.0140.00014.57
5.5.180.0040.01114.54
5.5.170.0060.00914.19
5.5.160.0060.00614.52
5.5.150.0100.00714.39
5.5.140.0100.00614.45
5.5.130.0060.00914.38
5.5.120.0110.00314.37
5.5.110.0090.00014.11
5.5.100.0070.01114.64
5.5.90.0100.00714.64
5.5.80.0070.01014.53
5.5.70.0040.01114.38
5.5.60.0120.00314.47
5.5.50.0040.00814.39
5.5.40.0040.01113.98
5.5.30.0030.00614.38
5.5.20.0060.00714.36
5.5.10.0030.01014.16
5.5.00.0000.01513.86
5.4.450.0220.03316.33
5.4.440.0100.02716.32
5.4.430.0130.02516.31
5.4.420.0190.02416.30
5.4.410.0150.02916.28
5.4.400.0180.03316.12
5.4.390.0110.03816.14
5.4.380.0150.03916.12
5.4.370.0160.03216.12
5.4.360.0130.03316.18
5.4.350.0170.03616.20
5.4.340.0160.03916.11
5.4.330.0000.01312.63
5.4.320.0120.04316.14
5.4.310.0130.01916.19
5.4.300.0100.02716.11
5.4.290.0130.02816.11
5.4.280.0130.04016.12
5.4.270.0180.03516.10
5.4.260.0170.03316.10
5.4.250.0170.02516.17
5.4.240.0170.03916.13
5.4.230.0100.03816.13
5.4.220.0160.04016.13
5.4.210.0100.03116.11
5.4.200.0130.02016.14
5.4.190.0080.04016.15
5.4.180.0150.02616.21
5.4.170.0170.03516.11
5.4.160.0100.02716.18
5.4.150.0190.03916.14
5.4.140.0190.02314.82
5.4.130.0170.03414.87
5.4.120.0110.03214.79
5.4.110.0140.02214.89
5.4.100.0110.03814.84
5.4.90.0180.03214.87
5.4.80.0180.03114.83
5.4.70.0100.02814.79
5.4.60.0080.03214.85
5.4.50.0180.03714.84
5.4.40.0050.04114.82
5.4.30.0200.02514.85
5.4.20.0170.03814.78
5.4.10.0140.01914.77
5.4.00.0140.01814.55
5.3.290.0170.04715.06
5.3.280.0170.07015.09
5.3.270.0330.06714.96
5.3.260.0200.07714.95
5.3.250.0230.07714.95
5.3.240.0130.04315.02
5.3.230.0300.07015.00
5.3.220.0300.06314.86
5.3.210.0270.06715.02
5.3.200.0170.04714.76
5.3.190.0200.04715.02
5.3.180.0230.07014.98
5.3.170.0200.04015.02
5.3.160.0270.06715.02
5.3.150.0230.05015.00
5.3.140.0200.06315.06
5.3.130.0230.06014.99
5.3.120.0270.05014.82
5.3.110.0130.06014.82
5.3.100.0270.07014.23
5.3.90.0200.04714.37
5.3.80.0170.07714.42
5.3.70.0200.07714.45
5.3.60.0330.03314.20
5.3.50.0130.04014.43
5.3.40.0200.05314.39
5.3.30.0170.07014.41
5.3.20.0230.05713.88
5.3.10.0330.04013.93
5.3.00.0300.04013.93
5.2.170.0130.04711.85
5.2.160.0170.04311.85
5.2.150.0230.04711.85
5.2.140.0030.04011.85
5.2.130.0170.05711.85
5.2.120.0200.06011.85
5.2.110.0170.06011.85
5.2.100.0200.05711.85
5.2.90.0230.06011.85
5.2.80.0200.06011.85
5.2.70.0200.05711.85
5.2.60.0130.05711.85
5.2.50.0230.05011.85
5.2.40.0170.05711.85
5.2.30.0230.05311.85
5.2.20.0170.04711.85
5.2.10.0170.02711.85
5.2.00.0170.05711.85
5.1.60.0070.03711.85
5.1.50.0130.03011.88
5.1.40.0200.05011.89
5.1.30.0170.03311.90
5.1.20.0100.03311.91
5.1.10.0100.05711.94
5.1.00.0230.05011.94
5.0.50.0170.03011.94
5.0.40.0100.04311.94
5.0.30.0070.06711.94
5.0.20.0130.03011.94
5.0.10.0100.04311.94
5.0.00.0030.06011.94
4.4.90.0070.03311.85
4.4.80.0100.03311.85
4.4.70.0100.01711.85
4.4.60.0070.01711.85
4.4.50.0100.01311.85
4.4.40.0070.03011.87
4.4.30.0030.01711.88
4.4.20.0100.01711.92
4.4.10.0130.02711.94
4.4.00.0130.05011.94
4.3.110.0130.02311.94
4.3.100.0030.03311.94
4.3.90.0100.02311.94
4.3.80.0030.04011.94
4.3.70.0070.02011.94
4.3.60.0100.01311.94
4.3.50.0030.01711.94
4.3.40.0070.05011.94
4.3.30.0030.04011.94
4.3.20.0100.03011.94
4.3.10.0030.03711.94
4.3.00.0030.02011.94

preferences:
32.68 ms | 401 KiB | 5 Q