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]); if(count($bits) == 10){ if(is_numeric(trim(strip_tags($bits[3]))) && is_numeric(trim(strip_tags($bits[1])))){ $ag_lme = trim(strip_tags($bits[3]))/31.103; // in grams $au_lme = trim(strip_tags($bits[1]))/31.103; // in grams $au_lme_usd = trim(strip_tags($usd[1])); $ag_lme_usd = trim(strip_tags($usd[3])); } else{ $error = "Prices not collected from kitco.com"; } } else{ $error = "Prices not collected from kitco.com"; }

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.0140.00716.63
8.3.50.0080.01016.36
8.3.40.0070.00718.69
8.3.30.0120.00318.57
8.3.20.0040.00418.73
8.3.10.0040.00420.40
8.3.00.0080.00019.25
8.2.180.0130.01016.50
8.2.170.0130.00722.96
8.2.160.0070.00718.83
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.87
8.2.110.0060.00321.11
8.2.100.0100.00317.78
8.2.90.0000.01119.46
8.2.80.0040.00419.44
8.2.70.0080.00017.63
8.2.60.0000.00917.90
8.2.50.0090.00018.07
8.2.40.0000.00818.09
8.2.30.0030.00718.17
8.2.20.0040.00417.77
8.2.10.0070.00017.85
8.2.00.0000.00817.79
8.1.280.0130.00725.92
8.1.270.0030.00524.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00322.64
8.1.230.0080.00320.99
8.1.220.0000.00917.78
8.1.210.0000.00818.84
8.1.200.0000.00817.36
8.1.190.0060.00317.55
8.1.180.0050.00318.10
8.1.170.0090.00018.79
8.1.160.0000.00718.95
8.1.150.0000.00718.72
8.1.140.0070.00017.54
8.1.130.0000.00817.87
8.1.120.0000.00717.49
8.1.110.0000.00717.51
8.1.100.0000.00717.49
8.1.90.0040.00417.39
8.1.80.0070.00017.41
8.1.70.0030.00517.47
8.1.60.0030.00517.66
8.1.50.0000.00817.38
8.1.40.0040.00417.45
8.1.30.0060.00317.58
8.1.20.0040.00417.73
8.1.10.0040.00417.57
8.1.00.0000.00717.47
8.0.300.0040.00420.02
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0070.00017.29
8.0.260.0070.00018.39
8.0.250.0040.00416.97
8.0.240.0030.00516.98
8.0.230.0000.00717.03
8.0.220.0050.00316.96
8.0.210.0000.00816.89
8.0.200.0000.00716.90
8.0.190.0030.00616.96
8.0.180.0040.00416.96
8.0.170.0060.00316.86
8.0.160.0050.00216.84
8.0.150.0030.00516.85
8.0.140.0090.00016.88
8.0.130.0060.00013.38
8.0.120.0000.00716.86
8.0.110.0000.00716.76
8.0.100.0030.00616.76
8.0.90.0000.00716.88
8.0.80.0070.01016.91
8.0.70.0000.00716.75
8.0.60.0070.00016.75
8.0.50.0000.00716.84
8.0.30.0130.00617.07
8.0.20.0140.00817.00
8.0.10.0040.00417.07
8.0.00.0130.01016.82
7.4.330.0020.00213.04
7.4.320.0000.00616.57
7.4.300.0000.00616.49
7.4.290.0040.00416.65
7.4.280.0060.00316.54
7.4.270.0030.00316.59
7.4.260.0030.00313.35
7.4.250.0030.00616.66
7.4.240.0020.00616.60
7.4.230.0030.00316.71
7.4.220.0060.01216.44
7.4.210.0100.00516.62
7.4.200.0070.00016.73
7.4.190.0040.00416.68
7.4.160.0070.01316.63
7.4.150.0060.01216.54
7.4.140.0080.00916.66
7.4.130.0080.01216.54
7.4.120.0100.00716.51
7.4.110.0100.00716.44
7.4.100.0040.01416.63
7.4.90.0080.01116.63
7.4.80.0060.01119.39
7.4.70.0070.01016.52
7.4.60.0100.00716.50
7.4.50.0130.00016.35
7.4.40.0070.01116.38
7.4.30.0100.00616.59
7.4.00.0090.00914.79
7.3.330.0070.00013.31
7.3.320.0030.00313.22
7.3.310.0040.00416.14
7.3.300.0060.00016.33
7.3.290.0120.00616.39
7.3.280.0060.01116.38
7.3.270.0210.00416.53
7.3.260.0120.01216.65
7.3.250.0080.01316.50
7.3.240.0040.01216.59
7.3.230.0130.00316.36
7.3.210.0120.00916.45
7.3.200.0120.00316.43
7.3.190.0100.00616.36
7.3.180.0070.00916.66
7.3.170.0140.00316.43
7.3.160.0060.00916.50
7.3.120.0000.01114.64
7.3.10.0090.00716.41
7.3.00.0050.00716.46
7.2.330.0060.01216.71
7.2.320.0060.01616.69
7.2.310.0040.01516.78
7.2.300.0030.01416.64
7.2.290.0160.00316.75
7.2.130.0060.00916.65
7.2.120.0060.01016.77
7.2.110.0050.00916.67
7.2.100.0110.00316.89
7.2.90.0060.01016.80
7.2.80.0130.00316.92
7.2.70.0100.00416.77
7.2.60.0100.00516.83
7.2.50.0050.01316.78
7.2.40.0090.00716.91
7.2.30.0050.00816.82
7.2.20.0080.00817.04
7.2.10.0090.00616.93
7.2.00.0080.00817.47
7.1.250.0070.00615.30
7.1.100.0030.00718.03
7.1.70.0080.00016.73
7.1.60.0110.01519.40
7.1.50.0090.01516.79
7.1.00.0000.03722.51
7.0.200.0100.00016.92
7.0.140.0130.06022.07
7.0.120.0000.07322.15
7.0.60.0030.04320.05
7.0.50.0030.04717.95
7.0.40.0070.07717.73
7.0.30.0030.04017.71
7.0.20.0070.04017.76
7.0.10.0030.04017.78
7.0.00.0000.05317.71
5.6.210.0000.09020.72
5.6.200.0030.08318.18
5.6.190.0100.08018.19
5.6.180.0100.03718.11
5.6.170.0100.03718.12
5.6.160.0030.04018.15
5.6.150.0070.03718.17
5.6.140.0070.03718.09
5.6.130.0000.04318.18
5.6.120.0030.04018.21
5.6.110.0000.04318.08
5.6.100.0130.03018.06
5.6.90.0070.03718.19
5.6.80.0100.03017.57
5.6.70.0000.04017.54
5.6.60.0000.04017.49
5.6.50.0030.03717.62
5.6.40.0070.03717.45
5.6.30.0030.03717.48
5.6.20.0000.04017.57
5.6.10.0100.03317.46
5.6.00.0100.07317.58
5.5.350.0070.07720.34
5.5.340.0070.08017.89
5.5.330.0170.04017.98
5.5.320.0030.04017.93
5.5.310.0030.04018.00
5.5.300.0000.05017.93
5.5.290.0000.04317.93
5.5.280.0000.04317.98
5.5.270.0000.04318.01
5.5.260.0100.03318.01
5.5.250.0070.03717.83
5.5.240.0030.03717.39
5.5.230.0000.04017.36
5.5.220.0070.03317.39
5.5.210.0000.04017.39
5.5.200.0030.03717.37
5.5.190.0000.04017.32
5.5.180.0000.04317.27
5.5.160.0070.07717.37
5.5.150.0130.05717.32
5.5.140.0200.06017.35
5.5.130.0170.06317.25
5.5.120.0100.07717.32
5.5.110.0070.05317.23
5.5.100.0100.07717.18
5.5.90.0070.07317.17
5.5.80.0000.07317.17
5.5.70.0130.07317.17
5.5.60.0070.07317.22
5.5.50.0100.07017.18
5.5.40.0030.06017.13
5.5.30.0130.07017.15
5.5.20.0130.07017.22
5.5.10.0070.07717.26
5.5.00.0100.06717.15
5.4.450.0000.04019.46
5.4.440.0130.05319.29
5.4.430.0170.02719.30
5.4.420.0070.04319.30
5.4.410.0000.05319.18
5.4.400.0100.03019.02
5.4.390.0070.03319.12
5.4.380.0000.04019.13
5.4.370.0030.04318.95
5.4.360.0000.04019.09
5.4.350.0030.03718.93
5.4.340.0030.03719.09
5.4.320.0100.03719.12
5.4.310.0070.06319.11
5.4.300.0070.07319.07
5.4.290.0130.07019.09
5.4.280.0070.08018.98
5.4.270.0000.06018.96
5.4.260.0030.07718.98
5.4.250.0030.05319.02
5.4.240.0000.07018.95
5.4.230.0070.07719.09
5.4.220.0130.06318.97
5.4.210.0100.05718.98
5.4.200.0030.05318.94
5.4.190.0070.06719.06
5.4.180.0030.06718.99
5.4.170.0030.06018.82
5.4.160.0130.06719.09
5.4.150.0030.05319.08
5.4.140.0170.06316.29
5.4.130.0100.04316.33
5.4.120.0030.04716.30
5.4.110.0100.07016.25
5.4.100.0200.06316.43
5.4.90.0070.04316.29
5.4.80.0100.06716.26
5.4.70.0030.07316.41
5.4.60.0130.06316.15
5.4.50.0030.07316.23
5.4.40.0000.07716.39
5.4.30.0030.07016.25
5.4.20.0000.06316.36
5.4.10.0070.04016.25
5.4.00.0030.07315.62
5.3.290.0070.03714.66
5.3.280.0100.07314.58
5.3.270.0130.07014.71
5.3.260.0030.08014.40
5.3.250.0100.06714.57
5.3.240.0100.07014.59
5.3.230.0100.06314.58
5.3.220.0070.04314.56
5.3.210.0070.07714.45
5.3.200.0030.07714.56
5.3.190.0030.08014.55
5.3.180.0100.07014.56
5.3.170.0030.07314.55
5.3.160.0030.07714.41
5.3.150.0100.05314.55
5.3.140.0030.05014.52
5.3.130.0100.04714.41
5.3.120.0100.04014.56
5.3.110.0030.08014.40
5.3.100.0070.07313.89
5.3.90.0100.07014.05
5.3.80.0100.06714.12
5.3.70.0100.06013.97
5.3.60.0070.06713.97
5.3.50.0100.05313.93
5.3.40.0130.04013.88
5.3.30.0100.07313.87
5.3.20.0070.06713.50
5.3.10.0100.06713.63
5.3.00.0070.07013.63
5.2.170.0000.03711.20
5.2.160.0100.06011.13
5.2.150.0070.03711.18
5.2.140.0030.03711.06
5.2.130.0030.04011.10
5.2.120.0000.04011.11
5.2.110.0000.05011.12
5.2.100.0030.04011.11
5.2.90.0000.04711.07
5.2.80.0030.06311.07
5.2.70.0030.05010.94
5.2.60.0000.03711.24
5.2.50.0000.06311.19
5.2.40.0100.05311.04
5.2.30.0030.04010.93
5.2.20.0130.02710.76
5.2.10.0030.06710.89
5.2.00.0070.05710.69
5.1.60.0100.0409.99
5.1.50.0100.04710.07
5.1.40.0030.05010.02
5.1.30.0070.02710.33
5.1.20.0070.03710.41
5.1.10.0030.03710.06
5.1.00.0030.0579.89
5.0.50.0030.0278.66
5.0.40.0100.0378.41
5.0.30.0000.0538.18
5.0.20.0100.0308.41
5.0.10.0100.0238.18
5.0.00.0030.0408.12
4.4.90.0000.0237.84
4.4.80.0030.0337.84
4.4.70.0030.0377.84
4.4.60.0000.0277.84
4.4.50.0030.0207.84
4.4.40.0170.0307.84
4.4.30.0000.0207.84
4.4.20.0070.0177.84
4.4.10.0000.0277.84
4.4.00.0000.0277.84
4.3.110.0030.0177.84
4.3.100.0030.0337.84
4.3.90.0070.0177.84
4.3.80.0130.0207.84
4.3.70.0030.0307.84
4.3.60.0070.0377.84
4.3.50.0030.0337.84
4.3.40.0000.0507.84
4.3.30.0000.0377.84
4.3.20.0070.0177.84
4.3.10.0030.0237.84
4.3.00.0030.0337.84

preferences:
46.56 ms | 401 KiB | 5 Q