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])))){ 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.0100.01016.63
8.3.50.0100.00517.37
8.3.40.0120.00318.82
8.3.30.0140.00718.50
8.3.20.0080.00018.77
8.3.10.0050.00320.56
8.3.00.0060.00319.38
8.2.180.0100.00716.50
8.2.170.0070.01422.96
8.2.160.0130.00318.79
8.2.150.0060.00324.18
8.2.140.0110.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.87
8.2.110.0030.00621.12
8.2.100.0090.00318.03
8.2.90.0030.00719.23
8.2.80.0000.00719.25
8.2.70.0080.00317.63
8.2.60.0080.00018.16
8.2.50.0060.00318.07
8.2.40.0000.00718.00
8.2.30.0050.00618.17
8.2.20.0030.00517.77
8.2.10.0000.00717.83
8.2.00.0000.00717.90
8.1.280.0140.00725.92
8.1.270.0070.01124.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.42
8.1.230.0090.00320.97
8.1.220.0000.00817.74
8.1.210.0110.00018.90
8.1.200.0000.01117.35
8.1.190.0000.00717.41
8.1.180.0050.00318.10
8.1.170.0050.00318.88
8.1.160.0000.00718.86
8.1.150.0040.00418.68
8.1.140.0030.00517.41
8.1.130.0030.00317.82
8.1.120.0000.00717.47
8.1.110.0000.00817.52
8.1.100.0000.00817.45
8.1.90.0040.00417.39
8.1.80.0080.00017.54
8.1.70.0090.00017.47
8.1.60.0040.00417.66
8.1.50.0000.00917.53
8.1.40.0030.00517.45
8.1.30.0020.00517.71
8.1.20.0030.00517.59
8.1.10.0040.00417.63
8.1.00.0040.00417.55
8.0.300.0040.00419.95
8.0.290.0000.00816.88
8.0.280.0070.00018.39
8.0.270.0000.00717.21
8.0.260.0030.00316.74
8.0.250.0090.00017.00
8.0.240.0000.00916.90
8.0.230.0020.00516.96
8.0.220.0030.00516.87
8.0.210.0040.00416.89
8.0.200.0040.00417.06
8.0.190.0070.00017.06
8.0.180.0050.00316.91
8.0.170.0090.00016.89
8.0.160.0030.00516.84
8.0.150.0040.00416.95
8.0.140.0070.00016.92
8.0.130.0000.00613.29
8.0.120.0040.00416.86
8.0.110.0040.00416.83
8.0.100.0070.00016.80
8.0.90.0000.00817.05
8.0.80.0160.01017.00
8.0.70.0000.00716.87
8.0.60.0000.00816.99
8.0.50.0040.00416.99
8.0.30.0090.00917.03
8.0.20.0060.01617.18
8.0.10.0040.00416.93
8.0.00.0100.00816.90
7.4.330.0000.00513.15
7.4.320.0000.00916.54
7.4.300.0030.00316.50
7.4.290.0030.00316.47
7.4.280.0090.00316.65
7.4.270.0050.00216.51
7.4.260.0000.00613.34
7.4.250.0060.00316.53
7.4.240.0020.00516.65
7.4.230.0030.00316.56
7.4.220.0140.00316.50
7.4.210.0060.01116.57
7.4.200.0070.00016.39
7.4.190.0000.00816.69
7.4.160.0030.01416.31
7.4.150.0150.00316.48
7.4.140.0130.00816.57
7.4.130.0090.00916.65
7.4.120.0120.00616.47
7.4.110.0070.01016.48
7.4.100.0120.01616.57
7.4.90.0110.00616.66
7.4.80.0070.00619.39
7.4.70.0060.01016.57
7.4.60.0130.00316.65
7.4.50.0070.00716.50
7.4.40.0090.00616.58
7.4.30.0190.00316.46
7.4.00.0030.01114.92
7.3.330.0000.00613.14
7.3.320.0000.00613.21
7.3.310.0090.00016.25
7.3.300.0000.00816.42
7.3.290.0130.00316.41
7.3.280.0090.00916.43
7.3.270.0130.00316.66
7.3.260.0100.00716.37
7.3.250.0130.00816.51
7.3.240.0090.01116.71
7.3.230.0100.00716.59
7.3.210.0090.00916.38
7.3.200.0110.00416.29
7.3.190.0110.01116.38
7.3.180.0090.00616.60
7.3.170.0110.01116.48
7.3.160.0030.01216.70
7.3.120.0080.00815.07
7.3.110.0060.01314.75
7.3.100.0030.01214.67
7.3.90.0090.00014.78
7.3.80.0000.01315.02
7.3.70.0030.00914.86
7.3.60.0080.00614.64
7.3.50.0000.00915.01
7.3.40.0070.00714.98
7.3.30.0090.00615.07
7.3.20.0030.01016.75
7.3.10.0080.00516.60
7.3.00.0020.01216.68
7.2.330.0090.01216.50
7.2.320.0060.01216.82
7.2.310.0090.00816.88
7.2.300.0140.00716.55
7.2.290.0030.01316.84
7.2.250.0120.00315.25
7.2.240.0070.01415.16
7.2.230.0060.00915.05
7.2.220.0060.00915.38
7.2.210.0060.00915.13
7.2.200.0070.00714.97
7.2.190.0060.00615.07
7.2.180.0030.01015.08
7.2.170.0080.00615.17
7.2.130.0060.00916.82
7.2.120.0030.00816.74
7.2.110.0060.00917.07
7.2.100.0040.01116.98
7.2.90.0060.00617.05
7.2.80.0030.01417.05
7.2.70.0030.01316.92
7.2.60.0040.00817.07
7.2.50.0060.00916.82
7.2.40.0090.00617.07
7.2.30.0110.00316.77
7.2.20.0090.00616.99
7.2.10.0040.01416.95
7.2.00.0050.00918.31
7.1.330.0070.00715.87
7.1.320.0060.00615.66
7.1.310.0090.00315.69
7.1.300.0040.01115.61
7.1.290.0090.00315.82
7.1.280.0000.01015.63
7.1.270.0110.00015.76
7.1.260.0030.00615.84
7.1.250.0080.00415.58
7.1.240.0080.00015.56
7.1.230.0060.00315.72
7.1.220.0050.00515.78
7.1.210.0090.00315.86
7.1.200.0030.01015.89
7.1.190.0140.00015.70
7.1.180.0080.00015.89
7.1.170.0030.01315.36
7.1.160.0000.01215.66
7.1.150.0070.00715.70
7.1.140.0110.00315.39
7.1.130.0030.01015.95
7.1.120.0000.00915.65
7.1.110.0030.01015.95
7.1.100.0090.00015.72
7.1.90.0060.00615.76
7.1.80.0030.01015.55
7.1.70.0060.00516.50
7.1.60.0060.01017.73
7.1.50.0080.01016.42
7.1.40.0070.00715.78
7.1.30.0060.00315.66
7.1.20.0080.00815.86
7.1.10.0070.00715.71
7.1.00.0070.02219.13
7.0.330.0080.00815.35
7.0.320.0000.01415.43
7.0.310.0030.00715.63
7.0.300.0030.00915.39
7.0.290.0100.00315.40
7.0.280.0000.01215.48
7.0.270.0060.00615.31
7.0.260.0000.00815.16
7.0.250.0070.01015.55
7.0.240.0040.01115.40
7.0.230.0080.00415.37
7.0.220.0080.00415.15
7.0.210.0120.00015.52
7.0.200.0070.00815.98
7.0.190.0000.00915.27
7.0.180.0030.00615.32
7.0.170.0090.00315.32
7.0.160.0100.00315.41
7.0.150.0060.00915.54
7.0.140.0020.04218.74
7.0.130.0080.00415.49
7.0.120.0050.03718.63
7.0.110.0000.01515.54
7.0.100.0030.01015.54
7.0.90.0000.01315.52
7.0.80.0040.01115.48
7.0.70.0050.00615.17
7.0.60.0050.02717.67
7.0.50.0030.03916.54
7.0.40.0070.04015.63
7.0.30.0050.04515.65
7.0.20.0020.03515.44
7.0.10.0050.03515.62
7.0.00.0050.02715.60
5.6.380.0070.00714.67
5.6.370.0130.00314.71
5.6.360.0030.00614.43
5.6.350.0000.01514.68
5.6.340.0030.00914.27
5.6.330.0030.00914.44
5.6.320.0060.00814.68
5.6.310.0090.00314.34
5.6.300.0030.00614.05
5.6.290.0030.00614.45
5.6.280.0060.03917.73
5.6.270.0040.00714.54
5.6.260.0120.00014.32
5.6.250.0000.01214.13
5.6.240.0000.01414.39
5.6.230.0030.01314.53
5.6.220.0040.00714.34
5.6.210.0080.04517.44
5.6.200.0070.02816.38
5.6.190.0020.02716.48
5.6.180.0070.03816.28
5.6.170.0070.04716.28
5.6.160.0030.04416.28
5.6.150.0100.04116.31
5.6.140.0020.05116.23
5.6.130.0060.03816.45
5.6.120.0030.04716.42
5.6.110.0040.03716.20
5.6.100.0110.03316.09
5.6.90.0040.04716.28
5.6.80.0040.04015.98
5.6.70.0050.03615.92
5.6.60.0080.02815.95
5.6.50.0110.03815.88
5.6.40.0020.04515.96
5.6.30.0020.04215.98
5.6.20.0080.04016.02
5.6.10.0100.02815.86
5.6.00.0030.02715.84
5.5.380.0130.00011.53
5.5.370.0000.00711.07
5.5.360.0060.00611.09
5.5.350.0170.04215.87
5.5.340.0080.04114.47
5.5.330.0050.03514.55
5.5.320.0050.04414.54
5.5.310.0020.04714.58
5.5.300.0030.02314.43
5.5.290.0050.03014.50
5.5.280.0040.04314.58
5.5.270.0120.03314.61
5.5.260.0040.04114.40
5.5.250.0120.04214.42
5.5.240.0050.04014.22
5.5.230.0050.04014.30
5.5.220.0080.04014.13
5.5.210.0070.03914.19
5.5.200.0050.04214.14
5.5.190.0030.03814.03
5.5.180.0050.04114.26
5.5.170.0030.00310.96
5.5.160.0050.02614.19
5.5.150.0070.02314.15
5.5.140.0050.04414.09
5.5.130.0080.03714.19
5.5.120.0060.03714.24
5.5.110.0080.03714.21
5.5.100.0050.03914.09
5.5.90.0030.03714.15
5.5.80.0080.03214.11
5.5.70.0020.04814.16
5.5.60.0080.03814.12
5.5.50.0060.03614.14
5.5.40.0050.03614.04
5.5.30.0030.03014.16
5.5.20.0050.02614.13
5.5.10.0070.03214.04
5.5.00.0050.04114.22
5.4.450.0050.04115.27
5.4.440.0050.04215.29
5.4.430.0100.04215.26
5.4.420.0100.03515.24
5.4.410.0020.04115.12
5.4.400.0020.02815.12
5.4.390.0020.04515.13
5.4.380.0090.03815.07
5.4.370.0050.03315.06
5.4.360.0030.04315.17
5.4.350.0080.03815.11
5.4.340.0100.03414.95
5.4.330.0030.00911.02
5.4.320.0000.03615.03
5.4.310.0000.04215.10
5.4.300.0030.04215.07
5.4.290.0020.04414.91
5.4.280.0090.03815.05
5.4.270.0090.03515.04
5.4.260.0020.04215.07
5.4.250.0080.03214.97
5.4.240.0050.04215.02
5.4.230.0080.02815.00
5.4.220.0020.03014.80
5.4.210.0050.03315.00
5.4.200.0070.03015.10
5.4.190.0030.03815.05
5.4.180.0060.04315.02
5.4.170.0050.04514.95
5.4.160.0040.03114.96
5.4.150.0080.02614.98
5.4.140.0060.03313.74
5.4.130.0020.04013.81
5.4.120.0050.04013.76
5.4.110.0070.04013.72
5.4.100.0060.04013.65
5.4.90.0080.02513.59
5.4.80.0100.03113.63
5.4.70.0070.02713.52
5.4.60.0030.02813.67
5.4.50.0030.04113.67
5.4.40.0070.03513.71
5.4.30.0050.03313.71
5.4.20.0030.02813.66
5.4.10.0080.03713.61
5.4.00.0130.03313.37
5.3.290.0070.03912.60
5.3.280.0070.04312.55
5.3.270.0050.04212.59
5.3.260.0050.04012.51
5.3.250.0030.02812.48
5.3.240.0030.03312.54
5.3.230.0050.04412.55
5.3.220.0080.03612.47
5.3.210.0070.04012.49
5.3.200.0050.04012.45
5.3.190.0070.03012.48
5.3.180.0100.03512.51
5.3.170.0110.03212.60
5.3.160.0090.03212.47
5.3.150.0020.04412.59
5.3.140.0100.03512.60
5.3.130.0030.03012.52
5.3.120.0020.03212.50
5.3.110.0050.02512.63
5.3.100.0030.03212.11
5.3.90.0050.03812.25
5.3.80.0030.02312.18
5.3.70.0020.04512.19
5.3.60.0050.03912.22
5.3.50.0020.03012.14
5.3.40.0020.02912.14
5.3.30.0050.03512.19
5.3.20.0060.03611.94
5.3.10.0100.03011.92
5.3.00.0030.04011.90
5.2.170.0060.02010.31
5.2.160.0020.02210.33
5.2.150.0050.02110.40
5.2.140.0060.03010.36
5.2.130.0010.02610.39
5.2.120.0080.02210.35
5.2.110.0050.02710.37
5.2.100.0080.01510.37
5.2.90.0020.02210.38
5.2.80.0040.02910.38
5.2.70.0020.03610.30
5.2.60.0020.02010.37
5.2.50.0030.02910.35
5.2.40.0040.02910.30
5.2.30.0050.03110.28
5.2.20.0050.03010.31
5.2.10.0050.02210.29
5.2.00.0050.03010.18
5.1.60.0020.0279.80
5.1.50.0040.0269.85
5.1.40.0020.0259.85
5.1.30.0000.03310.02
5.1.20.0000.02010.02
5.1.10.0020.0279.86
5.1.00.0000.0249.89
5.0.50.0020.0229.13
5.0.40.0030.0229.03
5.0.30.0030.0358.86
5.0.20.0030.0208.96
5.0.10.0050.0088.94
5.0.00.0020.0328.95
4.4.90.0030.0128.68
4.4.80.0000.0118.68
4.4.70.0000.0238.68
4.4.60.0060.0138.68
4.4.50.0050.0188.68
4.4.40.0030.0238.68
4.4.30.0020.0198.68
4.4.20.0070.0088.68
4.4.10.0040.0158.68
4.4.00.0000.0298.68
4.3.110.0000.0168.68
4.3.100.0020.0138.68
4.3.90.0030.0208.68
4.3.80.0030.0268.68
4.3.70.0010.0188.68
4.3.60.0030.0188.68
4.3.50.0030.0188.68
4.3.40.0030.0258.68
4.3.30.0050.0188.68
4.3.20.0030.0118.68
4.3.10.0040.0158.68
4.3.00.0020.0188.68

preferences:
60.47 ms | 400 KiB | 5 Q