3v4l.org

run code in 300+ PHP versions simultaneously
<?php //this reads 3hr PSI RSS feed from NEA $Output_3hr = ""; $url_3hr = "http://wip.weather.gov.sg/wip/pp/rndops/web/rss/rssHeavyRain_new.xml"; $xml_3hr = simplexml_load_file($url_3hr); for($i=0; $i<10; $i++){ $value_3hr = $xml_3hr->rss->channel->item[$i]->psi; $Output_3hr .= "<p>$value_3hr</p>"; } echo $Output_3hr; ?>

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.00716.87
8.3.50.0110.01021.23
8.3.40.0180.00019.02
8.3.30.0120.00319.09
8.3.20.0040.00420.71
8.3.10.0080.00023.89
8.3.00.0000.00818.43
8.2.180.0000.01518.91
8.2.170.0150.00022.96
8.2.160.0120.00320.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00017.85
8.2.110.0090.00322.59
8.2.100.0040.00718.18
8.2.90.0040.00419.48
8.2.80.0030.00518.00
8.2.70.0040.00417.88
8.2.60.0060.00318.18
8.2.50.0030.00618.07
8.2.40.0000.00921.32
8.2.30.0040.00420.94
8.2.20.0080.00017.97
8.2.10.0000.00818.39
8.2.00.0060.00318.29
8.1.280.0100.01025.92
8.1.270.0100.01024.09
8.1.260.0050.00326.35
8.1.250.0110.00428.09
8.1.240.0060.00322.90
8.1.230.0100.00317.93
8.1.220.0030.00618.01
8.1.210.0080.00018.77
8.1.200.0000.00917.47
8.1.190.0000.00917.48
8.1.180.0030.00618.10
8.1.170.0100.00318.71
8.1.160.0000.00722.31
8.1.150.0050.00219.09
8.1.140.0000.00821.52
8.1.130.0000.00717.91
8.1.120.0070.00017.68
8.1.110.0040.00417.65
8.1.100.0040.00417.62
8.1.90.0000.00817.54
8.1.80.0060.00317.54
8.1.70.0030.00617.66
8.1.60.0060.00317.79
8.1.50.0030.00617.53
8.1.40.0030.00517.69
8.1.30.0040.00417.63
8.1.20.0000.00817.84
8.1.10.0030.00517.67
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0050.00318.61
8.0.270.0040.00417.61
8.0.260.0030.00317.53
8.0.250.0020.00517.25
8.0.240.0040.00417.31
8.0.230.0080.00017.25
8.0.220.0020.00517.24
8.0.210.0080.00017.02
8.0.200.0000.00717.21
8.0.190.0000.00817.31
8.0.180.0040.00417.22
8.0.170.0000.00817.26
8.0.160.0040.00417.05
8.0.150.0000.00817.23
8.0.140.0000.00717.07
8.0.130.0000.00813.73
8.0.120.0000.00717.27
8.0.110.0030.00617.24
8.0.100.0080.00017.21
8.0.90.0040.00417.21
8.0.80.0060.01017.33
8.0.70.0080.00017.31
8.0.60.0000.00817.14
8.0.50.0050.00317.11
8.0.30.0160.00617.38
8.0.20.0120.01217.40
8.0.10.0040.00417.16
8.0.00.0120.01317.21
7.4.330.0030.00315.41
7.4.320.0030.00316.87
7.4.300.0040.00416.82
7.4.290.0040.00416.75
7.4.280.0030.00616.71
7.4.270.0000.00716.86
7.4.260.0070.00016.72
7.4.250.0050.00316.89
7.4.240.0060.00216.82
7.4.230.0000.00716.91
7.4.220.0080.01216.94
7.4.210.0110.00916.71
7.4.200.0040.00416.79
7.4.160.0120.00616.79
7.4.150.0090.01517.40
7.4.140.0140.00817.86
7.4.130.0100.01016.81
7.4.120.0100.01016.73
7.4.110.0060.01316.82
7.4.100.0100.00916.94
7.4.90.0140.00616.88
7.4.80.0170.00619.39
7.4.70.0090.00916.75
7.4.60.0080.00816.70
7.4.50.0050.00216.83
7.4.40.0100.01016.97
7.4.30.0120.00616.71
7.4.00.0090.00615.13
7.3.330.0050.00013.65
7.3.320.0030.00313.39
7.3.310.0040.00416.56
7.3.300.0070.00016.52
7.3.290.0090.01016.71
7.3.280.0080.01016.77
7.3.270.0090.00917.40
7.3.260.0130.00716.62
7.3.240.0090.00916.65
7.3.230.0140.01016.88
7.3.210.0100.01317.05
7.3.200.0160.00916.66
7.3.190.0300.02816.86
7.3.180.0120.00416.92
7.3.170.0030.01516.84
7.3.160.0030.01316.71
7.3.10.0100.01316.59
7.3.00.0140.00816.43
7.2.330.0110.00817.13
7.2.320.0130.00616.86
7.2.310.0140.01116.97
7.2.300.0030.01617.14
7.2.290.0210.01617.11
7.2.130.0080.01217.07
7.2.120.0120.01216.53
7.2.110.0150.01116.79
7.2.100.0030.01416.71
7.2.90.0160.00316.68
7.2.80.0120.00416.75
7.2.70.0120.01216.73
7.2.60.0090.00916.95
7.2.50.0170.01116.56
7.2.40.0220.00216.67
7.2.30.0190.00616.60
7.2.20.0130.00316.82
7.2.10.0100.00716.64
7.2.00.0080.00618.17
7.1.250.0040.01815.34
7.1.200.0070.00716.26
7.1.100.0120.00018.33
7.1.70.0070.00717.66
7.1.60.0120.01219.50
7.1.50.0070.01017.23
7.1.00.0070.07323.02
7.0.200.0210.00715.23
7.0.60.0070.08320.27
7.0.50.0030.09018.16
7.0.40.0130.03720.66
7.0.30.0300.07720.61
7.0.20.0270.08020.56
7.0.10.0370.07720.58
7.0.00.0030.05320.52
5.6.280.0030.03321.29
5.6.210.0130.03720.82
5.6.200.0170.07718.55
5.6.190.0030.04321.16
5.6.180.4200.03721.13
5.6.170.0270.07720.89
5.6.160.0000.06020.91
5.6.150.0130.07018.75
5.6.140.0030.04318.48
5.6.130.0130.08018.63
5.6.120.0030.06021.31
5.6.110.0100.05721.35
5.6.100.0130.06721.38
5.6.90.0100.05321.55
5.6.80.0070.07020.72
5.6.70.0000.08320.96
5.5.350.0130.07720.74
5.5.340.0000.08318.53
5.5.330.0070.04720.83
5.5.320.0330.07320.86
5.5.310.0200.08720.77
5.5.300.0000.07318.38
5.5.290.0070.06718.35
5.5.280.0030.09021.16
5.5.270.0070.08321.14
5.5.260.0100.06321.45
5.5.250.0130.07320.88
5.5.240.0100.07320.54
5.4.450.0330.04020.22
5.4.440.0070.06720.13
5.4.430.0170.05319.99
5.4.420.0170.05019.94
5.4.410.0130.05319.86
5.4.400.0200.04719.73
5.4.390.0270.04719.90
5.4.380.0130.05719.89
5.4.370.0270.04319.82
5.4.360.0170.05319.89
5.4.350.0170.05019.83
5.4.340.0070.06319.85
5.4.320.0270.06019.85
5.4.310.0230.04719.68
5.4.300.0130.05319.65
5.4.290.0130.06019.71
5.4.280.0270.04319.84
5.4.270.0270.04719.67
5.4.260.0130.05719.65
5.4.250.0200.05319.76
5.4.240.0200.05719.60
5.4.230.0170.05719.65
5.4.220.0170.05719.67
5.4.210.0170.07019.79
5.4.200.0170.06319.70
5.4.190.0270.04719.78
5.4.180.0270.05719.64
5.4.170.0230.05719.64
5.4.160.0330.04719.75
5.4.150.0300.04319.62
5.4.140.0200.05717.13
5.4.130.0270.04317.07
5.4.120.0270.04716.97
5.4.110.0270.05717.32
5.4.100.0200.05717.02
5.4.90.0170.04717.10
5.4.80.0100.05317.00
5.4.70.0170.04717.09
5.4.60.0130.05017.23
5.4.50.0130.04717.23
5.4.40.0130.05016.94
5.4.30.0170.04717.17
5.4.20.0170.05317.05
5.4.10.0230.04717.12
5.4.00.0200.06316.60

preferences:
57.2 ms | 401 KiB | 5 Q