3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_page['response'] = ' <table border="0" cellspacing="1" cellpadding="0" width="100%"><tbody><tr><td width="20" nowrap="">&nbsp;</td><td colspan="7" align="center"><a href="/gold.londonfix.html" class="white">Click Here for Historical London Fix Prices</a></td><td>&nbsp;</td></tr><tr bgcolor="#E0E0E0"><td bgcolor="#000000">&nbsp;</td><td bgcolor="#F3F3E4">&nbsp; <a href="#" class="blackboldlink">LONDON FIX</a></td><td colspan="2" align="center" bgcolor="#F3F3E4"><p>Gold</p></td><td align="center" bgcolor="#F3F3E4"><p>Silver</p></td><td colspan="2" align="center" bgcolor="#F3F3E4"><p>Platinum</p></td><td colspan="2" align="center" bgcolor="#F3F3E4"><p>Palladium</p></td></tr><tr align="center" bgcolor="#DADADA"><td bgcolor="#000000">&nbsp;</td><td align="left" bgcolor="#CCCC99"><p>&nbsp;May 21, 2014</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>AM</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>PM</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>-</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>AM</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>PM</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>AM</p></td><td nowrap="" bgcolor="#CCCC99" width="50"><p>PM</p></td></tr><tr align="center" bgcolor="#E0E0E0"><td bgcolor="#000000">&nbsp;</td><td align="left" bgcolor="#F3F3E4"><p>&nbsp;<img src="/images/dollar.gif" width="12" height="12" alt="$"> USD</p></td><td bgcolor="#F3F3E4"><p>1292.00</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td><td bgcolor="#F3F3E4"><p>NA</p></td><td bgcolor="#F3F3E4"><p>1479.00</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td><td bgcolor="#F3F3E4"><p>828.00</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td></tr><tr align="center" bgcolor="#DADADA"><td bgcolor="#000000">&nbsp;</td><td align="left" bgcolor="#F3F3E4"><p>&nbsp;<img src="/images/pound.gif" width="12" height="12" alt="BP"> GBP</p></td><td bgcolor="#F3F3E4"><p>764.81</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td><td bgcolor="#F3F3E4"><p>NA</p></td> <td bgcolor="#F3F3E4"><p>874.90</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td> <td bgcolor="#F3F3E4"><p>489.80</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td></tr> <tr align="center" bgcolor="#DADADA"><td bgcolor="#000000">&nbsp;</td><td align="left" bgcolor="#F3F3E4"><p>&nbsp;<img src="/images/euro.gif" width="12" height="12" alt="E"> Euro</p></td><td bgcolor="#F3F3E4"><p>942.65</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td><td bgcolor="#F3F3E4"><p>NA</p></td><td bgcolor="#F3F3E4"><p>1078.40</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td><td bgcolor="#F3F3E4"><p>603.70</p></td> <td bgcolor="#F3F3E4"> <p>NA </p></td></tr></tbody></table> '; $bits = explode("London Fix Prices",$price_page['response']); $usd = explode("London Fix Prices",$price_page['response']); $bits = explode("GBP",$bits[1]); $bits = explode("Euro",$bits[1]); $bits = explode("</td>",$bits[0]); $usd = explode("USD",$usd[1]); $usd = explode("GBP",$usd[1]); $usd = explode("</td>",$usd[0]); echo trim(strip_tags($bits[3])); echo trim(strip_tags($bits[1])); if(count($bits) == 10){ if(is_numeric(trim(strip_tags($bits[3]))) && is_numeric(trim(strip_tags($bits[1])))){ echo $ag_lme = trim(strip_tags($bits[3]))/31.103; // in grams echo $au_lme = trim(strip_tags($bits[1]))/31.103; // in grams echo $au_lme_usd = trim(strip_tags($usd[1])); echo $ag_lme_usd = trim(strip_tags($usd[3])); } else{ echo $error = "Prices not collected from kitco.com1"; } } else{ echo $error = "Prices not collected from kitco.com2"; }

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.37
8.3.50.0150.00816.58
8.3.40.0110.00718.73
8.3.30.0150.00318.96
8.3.20.0040.00418.90
8.3.10.0040.00420.49
8.3.00.0080.00019.51
8.2.180.0100.01016.50
8.2.170.0120.00322.96
8.2.160.0100.00721.10
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00920.82
8.2.110.0070.00421.03
8.2.100.0060.00617.72
8.2.90.0030.00518.22
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0080.00018.04
8.2.50.0000.01118.07
8.2.40.0040.00418.15
8.2.30.0030.00718.23
8.2.20.0040.00417.70
8.2.10.0040.00417.86
8.2.00.0000.00717.70
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.26
8.1.230.0080.00422.84
8.1.220.0030.00618.71
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0090.00017.36
8.1.180.0060.00318.10
8.1.170.0040.00418.75
8.1.160.0080.00018.91
8.1.150.0040.00418.73
8.1.140.0040.00417.48
8.1.130.0000.00717.78
8.1.120.0030.00617.50
8.1.110.0000.00917.40
8.1.100.0000.00817.52
8.1.90.0020.00517.51
8.1.80.0040.00317.41
8.1.70.0000.00817.49
8.1.60.0040.00417.54
8.1.50.0000.00917.52
8.1.40.0030.00517.57
8.1.30.0040.00417.73
8.1.20.0030.00617.69
8.1.10.0050.00317.67
8.1.00.0000.00717.55
8.0.300.0090.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.48
8.0.270.0070.00017.21
8.0.260.0030.00316.77
8.0.250.0100.00017.02
8.0.240.0080.00017.01
8.0.230.0000.00716.86
8.0.220.0030.00316.99
8.0.210.0030.00316.81
8.0.200.0000.00616.89
8.0.190.0040.00416.88
8.0.180.0050.00316.96
8.0.170.0000.00816.91
8.0.160.0020.00517.06
8.0.150.0040.00416.77
8.0.140.0030.00716.85
8.0.130.0000.00613.38
8.0.120.0040.00416.89
8.0.110.0040.00416.72
8.0.100.0000.00716.93
8.0.90.0000.00717.00
8.0.80.0070.00716.87
8.0.70.0030.00516.89
8.0.60.0040.00416.88
8.0.50.0040.00416.75
8.0.30.0090.00917.00
8.0.20.0130.01016.98
8.0.10.0000.00717.10
8.0.00.0140.00516.76
7.4.330.0000.00612.89
7.4.320.0080.00016.66
7.4.300.0000.00716.54
7.4.290.0000.00616.66
7.4.280.0070.00316.61
7.4.270.0040.00416.55
7.4.260.0080.00013.31
7.4.250.0040.00416.49
7.4.240.0000.00716.64
7.4.230.0040.00416.64
7.4.220.0060.01216.61
7.4.210.0080.00916.63
7.4.200.0000.00716.62
7.4.190.0050.00216.73
7.4.160.0100.01016.60
7.4.150.0130.00416.65
7.4.140.0050.01316.46
7.4.130.0080.01016.60
7.4.120.0100.00716.38
7.4.110.0070.01316.74
7.4.100.0120.00616.60
7.4.90.0030.01516.38
7.4.80.0100.01019.39
7.4.70.0060.01016.66
7.4.60.0090.00916.50
7.4.50.0070.00316.40
7.4.40.0040.01516.51
7.4.30.0050.01116.61
7.4.00.0050.01114.79
7.3.330.0070.00013.32
7.3.320.0000.00713.29
7.3.310.0000.00716.31
7.3.300.0040.00416.36
7.3.290.0140.00616.48
7.3.280.0050.01416.38
7.3.270.0180.00616.54
7.3.260.0100.00716.37
7.3.250.0140.00816.39
7.3.240.0130.00316.40
7.3.230.0160.00716.55
7.3.210.0040.01216.25
7.3.200.0120.00616.53
7.3.190.0090.01216.47
7.3.180.0070.01016.49
7.3.170.0140.00416.36
7.3.160.0060.01016.48
7.3.120.0050.01014.97
7.3.110.0130.00315.21
7.3.100.0040.01214.91
7.3.90.0060.00914.91
7.3.80.0050.00514.55
7.3.70.0000.00914.91
7.3.60.0030.00614.68
7.3.50.0110.00414.84
7.3.40.0120.00315.05
7.3.30.0060.00614.59
7.3.20.0040.01116.70
7.3.10.0100.00716.53
7.3.00.0060.00916.42
7.2.330.0100.01016.63
7.2.320.0030.01416.37
7.2.310.0120.01116.75
7.2.300.0090.01516.44
7.2.290.0130.00316.73
7.2.250.0040.01415.11
7.2.240.0100.00615.20
7.2.230.0130.00615.36
7.2.220.0030.00814.96
7.2.210.0030.00914.93
7.2.200.0140.00315.17
7.2.190.0130.00315.08
7.2.180.0030.01014.98
7.2.170.0060.01015.11
7.2.00.0110.00719.25
7.1.330.0030.00715.70
7.1.320.0110.00415.46
7.1.310.0060.00615.59
7.1.300.0000.00815.77
7.1.290.0060.00915.70
7.1.280.0100.00315.82
7.1.270.0100.00315.59
7.1.260.0100.00715.57
7.1.100.0090.00618.27
7.1.70.0220.01116.95
7.1.60.0070.01519.40
7.1.50.0070.01516.93
7.1.00.0100.03322.41
7.0.200.0000.01016.86
7.0.140.0030.07322.04
7.0.120.0030.06722.06
7.0.60.0270.07019.85
7.0.50.0100.03717.94
7.0.40.0100.08320.05
7.0.30.0130.03720.25
7.0.20.0070.07720.28
7.0.10.0030.05320.24
7.0.00.0100.05320.21
5.6.280.0030.07321.10
5.6.210.0070.08020.64
5.6.200.0100.08018.19
5.6.190.0130.07720.35
5.6.180.0070.08320.76
5.6.170.0100.08020.41
5.6.160.0030.06020.57
5.6.150.0130.06320.36
5.6.140.0130.07020.17
5.6.130.0100.04720.33
5.6.120.0100.05320.30
5.6.110.0170.04720.36
5.6.100.0030.08020.36
5.6.90.0100.05020.44
5.6.80.0130.06719.66
5.6.70.0070.08719.81
5.6.60.0070.05019.80
5.6.50.0000.06719.61
5.6.40.0070.04319.69
5.6.30.0070.04019.70
5.6.20.0070.08019.75
5.6.10.0070.04719.48
5.6.00.0070.08019.75
5.5.350.0070.07720.45
5.5.340.0070.08017.95
5.5.330.0100.06320.41
5.5.320.0070.04720.40
5.5.310.0170.08020.56
5.5.300.0000.04720.14
5.5.290.0070.04720.07
5.5.280.0200.07020.13
5.5.270.0070.05319.96
5.5.260.0000.05020.13
5.5.250.0100.08019.73
5.5.240.0000.05319.31
5.5.230.0130.07319.28
5.5.220.0130.07019.49
5.5.210.0100.07719.60
5.5.200.0070.08019.61
5.5.190.0070.08019.55
5.5.180.0130.07319.27
5.5.160.0100.06719.58
5.5.150.0100.05319.52
5.5.140.0070.06319.55
5.5.130.0130.05719.46
5.5.120.0070.04319.62
5.5.110.0000.07019.59
5.5.100.0030.04019.16
5.5.90.0030.06019.48
5.5.80.0030.04019.49
5.5.70.0000.04719.22
5.5.60.0070.03719.43
5.5.50.0070.07019.41
5.5.40.0000.05019.46
5.5.30.0170.06019.47
5.5.20.0130.07719.27
5.5.10.0000.05019.54
5.5.00.0000.04319.36
5.4.450.0070.07719.41
5.4.440.0100.05019.33
5.4.430.0130.05719.46
5.4.420.0030.04319.11
5.4.410.0170.07319.33
5.4.400.0130.07719.12
5.4.390.0070.07019.08
5.4.380.0030.04019.17
5.4.370.0130.07019.18
5.4.360.0130.06719.15
5.4.350.0030.03718.92
5.4.340.0230.06319.08
5.4.320.0100.07319.18
5.4.310.0170.07019.18
5.4.300.0030.04319.14
5.4.290.0030.04319.08
5.4.280.0070.08019.08
5.4.270.0030.06018.78
5.4.260.0070.07319.08
5.4.250.0030.07719.15
5.4.240.0070.03718.91
5.4.230.0000.04019.07
5.4.220.0030.05019.15
5.4.210.0100.06718.90
5.4.200.0070.06019.16
5.4.190.0070.07019.17
5.4.180.0100.07718.91
5.4.170.0030.05018.90
5.4.160.0030.08019.13
5.4.150.0030.05719.05
5.4.140.0200.05316.16
5.4.130.0170.05316.34
5.4.120.0070.03716.43
5.4.110.0130.06316.23
5.4.100.0030.04016.36
5.4.90.0030.03716.36
5.4.80.0000.04016.23
5.4.70.0130.03016.26
5.4.60.0100.07316.34
5.4.50.0100.04016.58
5.4.40.0100.03716.25
5.4.30.0030.07316.23
5.4.20.0070.07016.28
5.4.10.0030.04716.14
5.4.00.0100.07015.88
5.3.290.0100.04314.78
5.3.280.0100.03314.56
5.3.270.0030.04014.56
5.3.260.0000.09014.51
5.3.250.0030.05014.61
5.3.240.0100.04314.61
5.3.230.0100.07314.55
5.3.220.0130.04714.51
5.3.210.0070.07014.49
5.3.200.0100.05314.49
5.3.190.0070.07714.47
5.3.180.0000.04014.68
5.3.170.0030.08314.56
5.3.160.0030.08014.54
5.3.150.0100.07714.46
5.3.140.0170.06314.37
5.3.130.0000.07314.52
5.3.120.0070.07014.45
5.3.110.0070.06314.47
5.3.100.0170.06014.00
5.3.90.0070.04313.99
5.3.80.0070.07713.99
5.3.70.0100.06314.15
5.3.60.0070.07313.82
5.3.50.0070.07313.91
5.3.40.0070.07713.91
5.3.30.0100.04313.87
5.3.20.0030.03713.55
5.3.10.0130.06013.62
5.3.00.0100.07013.59
5.2.170.0030.06711.09
5.2.160.0030.05711.06
5.2.150.0030.05011.11
5.2.140.0000.03311.11
5.2.130.0170.04011.03
5.2.120.0070.03711.13
5.2.110.0070.04711.07
5.2.100.0070.03710.99
5.2.90.0000.04711.07
5.2.80.0070.06011.05
5.2.70.0070.04011.28
5.2.60.0130.04711.07
5.2.50.0100.05710.98
5.2.40.0000.03711.03
5.2.30.0070.04710.98
5.2.20.0070.04010.84
5.2.10.0070.03010.94
5.2.00.0000.05010.60
5.1.60.0030.04710.00
5.1.50.0070.0539.92
5.1.40.0030.05310.06
5.1.30.0070.05710.32
5.1.20.0000.04010.38
5.1.10.0100.02010.09
5.1.00.0000.03010.04
5.0.50.0000.0378.72
5.0.40.0070.0438.46
5.0.30.0000.0338.27
5.0.20.0070.0278.25
5.0.10.0070.0338.21
5.0.00.0030.0378.09
4.4.90.0000.0177.07
4.4.80.0000.0237.07
4.4.70.0000.0377.07
4.4.60.0000.0407.07
4.4.50.0100.0277.07
4.4.40.0030.0507.07
4.4.30.0030.0237.07
4.4.20.0030.0207.07
4.4.10.0000.0207.07
4.4.00.0070.0537.07
4.3.110.0030.0237.07
4.3.100.0000.0177.07
4.3.90.0000.0377.07
4.3.80.0000.0477.07
4.3.70.0000.0377.07
4.3.60.0070.0307.07
4.3.50.0070.0337.07
4.3.40.0000.0477.07
4.3.30.0000.0407.07
4.3.20.0070.0307.07
4.3.10.0000.0307.07
4.3.00.0070.0277.07

preferences:
40.23 ms | 401 KiB | 5 Q