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])); print_r($bits); 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.0000.01516.46
8.3.50.0090.00717.39
8.3.40.0170.00318.84
8.3.30.0060.01218.75
8.3.20.0140.00318.73
8.3.10.0040.00420.52
8.3.00.0030.00519.38
8.2.180.0210.00016.88
8.2.170.0120.00622.96
8.2.160.0100.01021.19
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0000.00820.83
8.2.110.0030.00620.38
8.2.100.0070.00719.52
8.2.90.0050.00317.88
8.2.80.0000.00817.97
8.2.70.0050.00317.93
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0000.00719.42
8.2.30.0050.00318.24
8.2.20.0070.00017.64
8.2.10.0040.00417.77
8.2.00.0030.00717.83
8.1.280.0060.01325.92
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0100.00021.04
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.91
8.1.160.0050.00218.87
8.1.150.0000.00918.69
8.1.140.0040.00417.58
8.1.130.0000.00717.88
8.1.120.0040.00417.55
8.1.110.0000.00717.46
8.1.100.0000.00717.56
8.1.90.0040.00317.41
8.1.80.0040.00417.47
8.1.70.0000.00817.39
8.1.60.0040.00417.52
8.1.50.0000.00817.44
8.1.40.0000.00817.60
8.1.30.0030.00517.63
8.1.20.0040.00417.66
8.1.10.0000.00717.62
8.1.00.0000.00817.54
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.51
8.0.270.0070.00017.30
8.0.260.0030.00516.77
8.0.250.0040.00617.01
8.0.240.0070.00016.98
8.0.230.0000.00716.89
8.0.220.0040.00416.95
8.0.210.0030.00516.90
8.0.200.0040.00416.99
8.0.190.0040.00416.88
8.0.180.0050.00216.90
8.0.170.0030.00616.83
8.0.160.0070.00016.99
8.0.150.0060.00316.84
8.0.140.0000.00916.94
8.0.130.0040.00413.35
8.0.120.0030.00616.85
8.0.110.0000.00716.81
8.0.100.0070.00016.79
8.0.90.0020.00517.05
8.0.80.0130.01016.92
8.0.70.0040.00416.89
8.0.60.0040.00416.88
8.0.50.0040.00416.84
8.0.30.0170.00417.07
8.0.20.0080.01117.22
8.0.10.0040.00416.98
8.0.00.0090.00916.80
7.4.330.0000.00513.07
7.4.320.0060.00016.55
7.4.300.0000.00716.45
7.4.290.0040.00416.63
7.4.280.0070.00016.65
7.4.270.0040.00416.55
7.4.260.0030.00313.34
7.4.250.0040.00416.54
7.4.240.0030.00316.46
7.4.230.0040.00416.46
7.4.220.0110.00716.45
7.4.210.0070.01016.62
7.4.200.0030.00316.69
7.4.190.0030.00316.64
7.4.160.0110.00516.56
7.4.150.0260.01316.46
7.4.140.0070.01016.59
7.4.130.0090.01116.48
7.4.120.0080.01216.54
7.4.110.0030.01416.73
7.4.100.0140.00916.60
7.4.90.0120.00616.48
7.4.80.0110.00719.39
7.4.70.0080.00816.68
7.4.60.0120.00816.73
7.4.50.0040.00816.54
7.4.40.0000.01416.26
7.4.30.0100.00616.67
7.4.00.0070.01015.21
7.3.330.0030.00313.30
7.3.320.0000.00613.29
7.3.310.0030.00316.31
7.3.300.0030.00316.42
7.3.290.0090.00916.38
7.3.280.0080.01116.39
7.3.270.0130.00516.68
7.3.260.0100.01016.59
7.3.250.0140.00616.48
7.3.240.0130.00316.54
7.3.230.0040.01716.55
7.3.210.0080.00816.68
7.3.200.0070.01016.54
7.3.190.0030.01416.58
7.3.180.0080.00816.69
7.3.170.0060.00916.41
7.3.160.0050.01116.46
7.3.120.0130.00314.91
7.2.330.0090.00916.75
7.2.320.0060.01516.56
7.2.310.0130.01016.72
7.2.300.0060.00916.68
7.2.290.0100.00716.80
7.2.60.0040.01116.76
7.2.00.0030.00919.29
7.1.200.0100.00315.61
7.1.100.0000.01118.02
7.1.70.0050.00517.04
7.1.60.0070.01819.40
7.1.50.0130.01016.96
7.1.00.0030.05022.48
7.0.200.0040.00416.85
7.0.140.0070.07022.07
7.0.120.0030.06722.15
7.0.60.0170.07319.86
7.0.50.0170.07717.88
7.0.40.0130.03720.14
7.0.30.0400.07720.33
7.0.20.0300.07020.15
7.0.10.0070.08320.33
7.0.00.0030.07020.05
5.6.280.0070.07021.08
5.6.210.0170.07320.78
5.6.200.0070.04018.17
5.6.190.0030.04320.48
5.6.180.0270.06320.48
5.6.170.0270.07320.57
5.6.160.0100.04320.46
5.6.150.0170.04718.18
5.6.140.0130.04718.28
5.6.130.0070.04318.29
5.6.120.0030.04321.01
5.6.110.0030.07321.20
5.6.100.0100.07020.89
5.6.90.0000.04721.08
5.6.80.0070.04020.49
5.6.70.2230.03320.37
5.5.350.0100.08720.41
5.5.340.0130.07317.95
5.5.330.0100.08320.40
5.5.320.0070.08320.32
5.5.310.0300.06320.36
5.5.300.0030.09318.04
5.5.290.0130.03318.08
5.5.280.0070.08320.77
5.5.270.0100.04720.90
5.5.260.0070.04720.61
5.5.250.0100.05020.58
5.5.240.0170.08320.05
5.4.450.0400.07019.28
5.4.440.0370.07019.20
5.4.430.0300.07319.40
5.4.420.0270.04319.31
5.4.410.0330.05319.28
5.4.400.0330.06719.07
5.4.390.0230.07018.98
5.4.380.0570.03718.85
5.4.370.0270.03719.16
5.4.360.0230.05018.90
5.4.350.0300.06018.96
5.4.340.0230.07319.07
5.4.320.0270.07018.85
5.4.310.0430.05718.93
5.4.300.0370.04018.92
5.4.290.0370.07318.92
5.4.280.0400.04319.05
5.4.270.0270.04018.86
5.4.260.0430.06718.84
5.4.250.0430.06019.14
5.4.240.0300.06719.05
5.4.230.0270.04318.91
5.4.220.0270.04019.16
5.4.210.0430.06019.08
5.4.200.0400.05018.91
5.4.190.0300.04019.14
5.4.180.0430.06319.06
5.4.170.0300.04318.91
5.4.160.0530.05718.95
5.4.150.0200.04318.90
5.4.140.0430.04016.47
5.4.130.0330.05716.49
5.4.120.0370.04716.32
5.4.110.0230.05016.56
5.4.100.0300.04016.53
5.4.90.0400.05716.45
5.4.80.0330.06316.52
5.4.70.0370.05716.52
5.4.60.0300.06716.33
5.4.50.0330.04316.38
5.4.40.0330.04716.35
5.4.30.0430.05716.48
5.4.20.0400.06716.53
5.4.10.0370.06016.48
5.4.00.0370.06315.96
5.3.290.0870.03714.76
5.3.280.0400.06714.54
5.3.270.0370.05714.67
5.3.260.0370.07714.74
5.3.250.0330.04014.54
5.3.240.0270.06314.54
5.3.230.0400.04014.64
5.3.220.0330.07014.56
5.3.210.0400.06314.59
5.3.200.0370.03014.67
5.3.190.0330.04714.55
5.3.180.0300.04714.70
5.3.170.0270.05314.59
5.3.160.0400.06714.59
5.3.150.0300.06014.59
5.3.140.0400.05714.49
5.3.130.0400.06314.55
5.3.120.0330.05714.64
5.3.110.0330.05314.48
5.3.100.0370.05713.98
5.3.90.0400.07014.03
5.3.80.0400.06714.13
5.3.70.0370.05314.11
5.3.60.0400.03314.14
5.3.50.0330.04014.05
5.3.40.0370.04313.89
5.3.30.0370.04313.85
5.3.20.0330.03713.73
5.3.10.0330.06713.79
5.3.00.0400.06313.68
5.2.170.0270.06011.29
5.2.160.0300.04311.10
5.2.150.0300.06011.15
5.2.140.0300.04711.39
5.2.130.0300.05711.29
5.2.120.0370.05011.14
5.2.110.0270.04011.03
5.2.100.0330.04711.14
5.2.90.0300.05311.06
5.2.80.0270.05711.05
5.2.70.0300.04711.36
5.2.60.0400.05311.00
5.2.50.0330.04710.97
5.2.40.0270.02711.02
5.2.30.0230.04710.90
5.2.20.0230.05010.91
5.2.10.0200.05010.79
5.2.00.0200.06310.68
5.1.60.0270.0279.89
5.1.50.0330.04710.07
5.1.40.0270.02010.12
5.1.30.0230.04710.32
5.1.20.0130.04010.54
5.1.10.0270.03710.21
5.1.00.0170.05010.02
5.0.50.0130.0408.73
5.0.40.0070.0278.38
5.0.30.0030.0338.22
5.0.20.0070.0208.37
5.0.10.0070.0208.12
5.0.00.0130.0308.17
4.4.90.0130.0337.83
4.4.80.0100.0377.83
4.4.70.0200.0237.83
4.4.60.0170.0277.83
4.4.50.0100.0237.83
4.4.40.0100.0537.83
4.4.30.0100.0237.83
4.4.20.0130.0377.83
4.4.10.0130.0377.83
4.4.00.0170.0477.83
4.3.110.0100.0177.83
4.3.100.0100.0337.83
4.3.90.0100.0137.83
4.3.80.0070.0237.83
4.3.70.0070.0177.83
4.3.60.0070.0177.83
4.3.50.0100.0177.83
4.3.40.0070.0237.83
4.3.30.0030.0207.83
4.3.20.0070.0137.83
4.3.10.0070.0137.83
4.3.00.0000.0177.83

preferences:
59.56 ms | 401 KiB | 5 Q