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"; } echo $price = $ag_lme * 0.928 * 1.05;

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.00416.88
8.3.50.0140.00521.87
8.3.40.0070.01418.66
8.3.30.0080.00819.13
8.3.20.0070.00020.39
8.3.10.0040.00423.70
8.3.00.0030.00619.38
8.2.180.0140.00416.88
8.2.170.0090.01322.96
8.2.160.0030.01320.54
8.2.150.0060.00324.18
8.2.140.0000.00924.66
8.2.130.0080.00026.16
8.2.120.0070.00022.25
8.2.110.0040.00422.16
8.2.100.0120.00017.91
8.2.90.0000.00819.35
8.2.80.0030.00517.97
8.2.70.0060.00317.72
8.2.60.0000.00817.91
8.2.50.0030.00518.07
8.2.40.0040.00419.94
8.2.30.0040.00418.32
8.2.20.0040.00417.80
8.2.10.0000.00718.28
8.2.00.0030.00617.98
8.1.280.0170.00325.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.03
8.1.230.0090.00319.20
8.1.220.0030.00517.77
8.1.210.0030.00518.77
8.1.200.0000.00917.48
8.1.190.0000.01017.12
8.1.180.0000.00819.14
8.1.170.0000.00818.43
8.1.160.0000.00722.02
8.1.150.0050.00318.65
8.1.140.0040.00417.54
8.1.130.0050.00317.87
8.1.120.0040.00317.41
8.1.110.0030.00517.54
8.1.100.0030.00517.57
8.1.90.0000.00817.46
8.1.80.0000.00717.43
8.1.70.0000.00717.47
8.1.60.0040.00417.65
8.1.50.0000.00917.55
8.1.40.0060.00317.46
8.1.30.0000.00817.55
8.1.20.0050.00217.57
8.1.10.0040.00417.63
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0040.00418.43
8.0.270.0080.00017.30
8.0.260.0050.00217.18
8.0.250.0030.00317.09
8.0.240.0050.00216.95
8.0.230.0030.00317.00
8.0.220.0000.00717.00
8.0.210.0020.00517.00
8.0.200.0070.00017.05
8.0.190.0040.00417.05
8.0.180.0030.00517.02
8.0.170.0040.00417.02
8.0.160.0040.00416.99
8.0.150.0030.00416.84
8.0.140.0030.00516.84
8.0.130.0060.00013.44
8.0.120.0040.00416.92
8.0.110.0040.00416.93
8.0.100.0050.00316.86
8.0.90.0040.00417.00
8.0.80.0060.01116.97
8.0.70.0000.00816.87
8.0.60.0040.00416.87
8.0.50.0030.00516.96
8.0.30.0070.01217.14
8.0.20.0130.00917.40
8.0.10.0040.00417.15
8.0.00.0120.01016.77
7.4.330.0060.00015.00
7.4.320.0070.00016.52
7.4.300.0060.00016.46
7.4.290.0040.00416.63
7.4.280.0080.00016.66
7.4.270.0070.00016.50
7.4.260.0030.00316.61
7.4.250.0030.00516.62
7.4.240.0030.00416.51
7.4.230.0070.00016.63
7.4.220.0110.00716.59
7.4.210.0050.00916.52
7.4.200.0040.00416.43
7.4.190.0040.00416.79
7.4.160.0140.00316.44
7.4.150.0110.00717.40
7.4.140.0160.00517.86
7.4.130.0120.00516.54
7.4.120.0100.00816.66
7.4.110.0030.01316.64
7.4.100.0090.01216.61
7.4.90.0110.00616.71
7.4.80.0110.00819.39
7.4.70.0080.01016.59
7.4.60.0090.01216.45
7.4.50.0040.00416.50
7.4.40.0100.00716.55
7.4.30.0110.00716.66
7.4.10.0040.01516.54
7.4.00.0050.01015.75
7.3.330.0020.00213.28
7.3.320.0050.00013.33
7.3.310.0000.00816.40
7.3.300.0000.00716.39
7.3.290.0030.01016.48
7.3.280.0040.01016.47
7.3.270.0090.00917.40
7.3.260.0060.01216.53
7.3.250.0070.01016.44
7.3.240.0060.01516.50
7.3.230.0000.01816.47
7.3.210.0050.01116.47
7.3.200.0100.01019.39
7.3.190.0140.00716.56
7.3.180.0060.01016.49
7.3.170.0120.00316.38
7.3.160.0130.00716.41
7.3.130.0070.01316.40
7.3.120.0040.00915.81
7.3.110.0070.00716.46
7.3.100.0050.00816.58
7.3.90.0070.00716.42
7.3.80.0030.01316.69
7.3.70.0110.00016.33
7.3.60.0090.00616.37
7.3.50.0000.01516.48
7.3.40.0070.00716.48
7.3.30.0000.01216.35
7.3.20.0000.01418.21
7.3.10.0100.00618.09
7.3.00.0080.00818.17
7.2.330.0140.00316.68
7.2.320.0060.01216.80
7.2.310.0110.00616.77
7.2.300.0090.00916.73
7.2.290.0090.00916.54
7.2.260.0040.01316.75
7.2.250.0160.00416.59
7.2.240.0060.00916.56
7.2.230.0030.01416.76
7.2.220.0060.00916.70
7.2.210.0030.01216.79
7.2.200.0060.00916.57
7.2.190.0090.00616.54
7.2.180.0070.00716.76
7.2.170.0060.00916.60
7.2.160.0060.00916.70
7.2.150.0150.00018.42
7.2.140.0090.00618.26
7.2.130.0040.01218.44
7.2.120.0000.01318.51
7.2.110.0030.01218.46
7.2.100.0070.01018.55
7.2.90.0070.00718.32
7.2.80.0090.00618.38
7.2.70.0060.01018.37
7.2.60.0000.01718.49
7.2.50.0060.00618.47
7.2.40.0070.00718.34
7.2.30.0100.01018.41
7.2.20.0120.00318.49
7.2.10.0030.00818.30
7.2.00.0070.00718.90
7.1.330.0030.01317.46
7.1.320.0000.01417.25
7.1.310.0000.01017.39
7.1.300.0140.00017.36
7.1.290.0000.01617.45
7.1.280.0060.00917.32
7.1.270.0030.01017.20
7.1.260.0060.00917.52
7.1.250.0090.00317.18
7.1.240.0030.00617.26
7.1.230.0060.01017.44
7.1.220.0060.00917.38
7.1.210.0040.00417.39
7.1.200.0110.00317.38
7.1.190.0030.01017.31
7.1.180.0070.00317.25
7.1.170.0110.00017.44
7.1.160.0060.00917.42
7.1.150.0110.00717.34
7.1.140.0110.00317.30
7.1.130.0060.00617.52
7.1.120.0070.01017.34
7.1.110.0040.01016.96
7.1.100.0020.01017.81
7.1.90.0090.00317.18
7.1.80.0040.01117.34
7.1.70.0070.00517.21
7.1.60.0100.01118.33
7.1.50.0040.01317.11
7.1.40.0060.00317.32
7.1.30.0040.00817.48
7.1.20.0120.00317.19
7.1.10.0070.00717.18
7.1.00.0050.04319.90
7.0.330.0000.01216.93
7.0.320.0030.00717.14
7.0.310.0070.00717.27
7.0.300.0060.00617.08
7.0.290.0180.00017.08
7.0.280.0070.00716.92
7.0.270.0070.00717.01
7.0.260.0040.01116.71
7.0.250.0130.00017.15
7.0.240.0080.00617.23
7.0.230.0060.00617.14
7.0.220.0100.00617.27
7.0.210.0080.00417.00
7.0.200.0040.00616.87
7.0.190.0000.01016.97
7.0.180.0090.00617.06
7.0.170.0080.00617.08
7.0.160.0060.00617.02
7.0.150.0030.00717.19
7.0.140.0050.04119.59
7.0.130.0060.00616.97
7.0.120.0030.00716.93
7.0.110.0140.00017.07
7.0.100.0030.01017.03
7.0.90.0090.00316.93
7.0.80.0070.00717.16
7.0.70.0100.00017.09
7.0.60.0050.04818.51
7.0.50.0070.04517.48
7.0.40.0120.04217.67
7.0.30.0170.02217.53
7.0.20.0220.03917.64
7.0.10.0030.03117.63
7.0.00.0030.02817.58
5.6.400.0130.00716.11
5.6.390.0030.01016.20
5.6.380.0030.00916.08
5.6.370.0110.00715.73
5.6.360.0060.00316.41
5.6.350.0080.00816.08
5.6.340.0150.00316.10
5.6.330.0060.01016.13
5.6.320.0040.00816.11
5.6.310.0070.01015.92
5.6.300.0090.00915.87
5.6.290.0100.00716.03
5.6.280.0060.03818.62
5.6.270.0070.00715.86
5.6.260.0100.00316.38
5.6.250.0000.01516.00
5.6.240.0040.01116.02
5.6.230.0060.00616.25
5.6.220.0060.00916.05
5.6.210.0050.04018.36
5.6.200.0070.03717.07
5.6.190.0080.02818.26
5.6.180.0110.04018.25
5.6.170.0170.02218.38
5.6.160.0050.04518.21
5.6.150.0050.03317.08
5.6.140.0110.04517.09
5.6.130.0080.03717.22
5.6.120.0050.04518.45
5.6.110.0080.03818.49
5.6.100.0050.04318.45
5.6.90.0030.02618.71
5.6.80.0110.02618.11
5.6.70.0060.00916.02
5.6.60.0000.01016.03
5.6.50.0130.00315.88
5.6.40.0000.01016.04
5.6.30.0070.00715.80
5.6.20.0000.00915.89
5.6.10.0070.00315.97
5.6.00.0120.00616.09
5.5.380.0080.00816.11
5.5.370.0050.00515.89
5.5.360.0000.01416.29
5.5.350.1300.02018.16
5.5.340.0080.02817.05
5.5.330.0090.04518.10
5.5.320.0160.03618.15
5.5.310.0180.04117.99
5.5.300.0060.03316.82
5.5.290.0100.04217.09
5.5.280.0090.04618.29
5.5.270.0020.05218.38
5.5.260.0080.02018.37
5.5.250.0090.04018.21
5.5.240.0030.04718.01
5.5.230.0030.00715.86
5.5.220.0040.00816.06
5.5.210.0120.00315.72
5.5.200.0030.00616.02
5.5.190.0060.01015.88
5.5.180.0040.00715.99
5.5.170.0000.01615.70
5.5.160.0090.00915.82
5.5.150.0050.00516.10
5.5.140.0070.01015.96
5.5.130.0040.01216.02
5.5.120.0000.01715.96
5.5.110.0070.00316.04
5.5.100.0040.01116.03
5.5.90.0100.00315.93
5.5.80.0070.00315.92
5.5.70.0040.00715.81
5.5.60.0060.00315.88
5.5.50.0040.01115.71
5.5.40.0030.00615.85
5.5.30.0060.00915.93
5.5.20.0060.00915.94
5.5.10.0000.01215.89
5.5.00.0030.00915.77
5.4.450.0050.04316.18
5.4.440.0070.04216.18
5.4.430.0050.04216.06
5.4.420.0020.03616.01
5.4.410.0020.03316.18
5.4.400.0030.04415.97
5.4.390.0050.04015.90
5.4.380.0000.04715.92
5.4.370.0080.03315.69
5.4.360.0030.04315.73
5.4.350.0060.04115.93
5.4.340.0020.04615.93
5.4.330.0030.01012.69
5.4.320.0030.04315.87
5.4.310.0050.03515.79
5.4.300.0100.03015.91
5.4.290.0030.03215.97
5.4.280.0050.04215.86
5.4.270.0020.03915.80
5.4.260.0040.03615.94
5.4.250.0050.04015.79
5.4.240.0050.02815.94
5.4.230.0070.03915.68
5.4.220.0040.04315.97
5.4.210.0020.03515.81
5.4.200.0050.02215.96
5.4.190.0070.03015.75
5.4.180.0070.03815.74
5.4.170.0020.04015.88
5.4.160.0020.02215.70
5.4.150.0020.02415.77
5.4.140.0060.03614.51
5.4.130.0080.03014.53
5.4.120.0050.03614.59
5.4.110.0020.03514.59
5.4.100.0050.03714.55
5.4.90.0020.03714.53
5.4.80.0030.04214.65
5.4.70.0080.02314.67
5.4.60.0000.04414.69
5.4.50.0030.02614.66
5.4.40.0030.02814.52
5.4.30.0030.03214.46
5.4.20.0050.03814.56
5.4.10.0040.02614.50
5.4.00.0080.03114.14
5.3.290.0030.04313.89
5.3.280.0000.04213.91
5.3.270.0050.04014.05
5.3.260.0020.02913.85
5.3.250.0050.02113.89
5.3.240.0040.02713.91
5.3.230.0070.03113.80
5.3.220.0050.03713.84
5.3.210.0050.03513.87
5.3.200.0020.03313.88
5.3.190.0020.03113.86
5.3.180.0080.03013.97
5.3.170.0000.03313.93
5.3.160.0000.03513.99
5.3.150.0020.04414.17
5.3.140.0030.02813.91
5.3.130.0070.04013.93
5.3.120.0070.03713.82
5.3.110.0050.03313.87
5.3.100.0050.04013.58
5.3.90.0060.03613.63
5.3.80.0020.04213.65
5.3.70.0030.04113.62
5.3.60.0050.03613.52
5.3.50.0010.03713.53
5.3.40.0050.03613.50
5.3.30.0050.03513.61
5.3.20.0050.03213.25
5.3.10.0030.03513.26
5.3.00.0050.03613.31
5.2.170.0000.06712.48
5.2.160.0030.05012.48
5.2.150.0000.05712.48
5.2.140.0070.05012.48
5.2.130.0000.04712.48
5.2.120.0000.05712.48
5.2.110.0030.06012.48
5.2.100.0070.03712.48
5.2.90.0030.06012.48
5.2.80.0030.06312.48
5.2.70.0030.05712.48
5.2.60.0070.04312.14
5.2.50.0030.05712.14
5.2.40.0070.05012.14
5.2.30.0030.05712.14
5.2.20.0070.06012.14
5.2.10.0030.06312.14
5.2.00.0070.04312.14
5.1.60.0000.05712.14
5.1.50.0070.04312.14
5.1.40.0070.04712.14
5.1.30.0000.05312.14
5.1.20.0000.04712.14
5.1.10.0070.04712.14
5.1.00.0030.05712.14
5.0.50.0000.04712.14
5.0.40.0070.04012.14
5.0.30.0030.06312.14
5.0.20.0000.04312.14
5.0.10.0030.03712.14
5.0.00.0030.06012.14
4.4.90.0000.03312.14
4.4.80.0030.03712.14
4.4.70.0030.03012.14
4.4.60.0030.03312.14
4.4.50.0000.03712.14
4.4.40.0000.05312.14
4.4.30.0000.04012.14
4.4.20.0030.03712.14
4.4.10.0000.03312.14
4.4.00.0030.05012.14
4.3.110.0000.03312.14
4.3.100.0030.03312.14
4.3.90.0030.02712.14
4.3.80.0030.03712.14
4.3.70.0000.03712.14
4.3.60.0030.02712.14
4.3.50.0000.03312.14
4.3.40.0030.04012.14
4.3.30.0030.03712.14
4.3.20.0030.03712.14
4.3.10.0000.04012.14
4.3.00.0030.03012.14

preferences:
66.08 ms | 401 KiB | 5 Q