3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOD <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="content-type"> <meta content="text/html"> <title>Bertoni - tašky s příběhem</title> <style type="text/css"> </style> </head> <body bgcolor="#edeeef" leftmargin="0" marginheigh="0" marginwidth="0" style="background-color:#edeeef" topmargin="0"><!--Pokud se vám zpráva nezobrazuje správně, klikněte zde.--> <table align="center" bgcolor="#FFFFFF" width="100%"> <tbody> <tr> <td> <table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="20"><font style="font-family:Arial,Helvetica,sans-serif;font-size: 11px; color: #7c7a7a; font-weight:normal">Nechte se zlákat kvalitními eko kabelkami.</font> <a href="&#91;WEB_VERSION_URL&#93;" style="color:#999999"><font style="font-family:Arial,Helvetica,sans-serif;font-size: 11px; color: #7c7a7a; font-weight:normal"> Klikněte zde.</font></a> </td> </tr> </tbody> </table> <!--logo MILVAI--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="100" width="600"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Milvai - Týdení inspirace" src="http://cdn.deliverio.cz/milvai1536/images/logo.gif" style="display:block; border:0;" title="Milvai - Týdenní inspirace" /></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--banner--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="212" width="600"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Hlavní banner pro kampaň Bertoni - tašky s příběhem" src="http://cdn.deliverio.cz/milvai1536/images/banner.jpg" style="display:block; border:0;" title="Bertoni - tašky s příběhem" /></a> </td> </tr> </tbody> </table> <!--Text--> <table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="50" style="padding-left: 15px;" width="400"> <p style="font-family: Garamond;font-size: 15px;color: #666;text-align: left;margin-bottom: 0px;margin-top: 0px;">Designéři značky Bertoni ví, jak do každé tašky zakomponovat zajímavý příběh. Vybírejte z různých barevných variant a motivů. </p> </td> <td align="center" height="50" style="padding-right: 15px;" width="170"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="right" alt="Zobrazit všechny produkty z nabídky Bertoni - tašky s příběhem" src="http://cdn.deliverio.cz/milvai1536/images/button2.png" style="display:block; border:0;" title="Zobrazit produkty" /></a> </td> </tr> </tbody> </table> <!--space--> <table align="center" cellpadding="0" cellspacing="0" height="6px" width="600"> <tbody> <tr> <td align="center" height="6px" width="600">&nbsp; </td> </tr> </tbody> </table> <!--produkty 1 řada--> <!--Ostatní kampaně--><!--socialni site--> <table align="center" cellpadding="0" cellspacing="0" height="20" width="600"> <tbody> <tr> <td>&nbsp; </td> </tr> </tbody> </table> <table align="center" bgcolor="#c7c6c6" cellpadding="0" cellspacing="0" height="42" width="600"> <tbody> <tr> <td align="center" height="42" width="216">&nbsp; </td> <td align="center" height="42" width="56"><a href="http://plus.google.com/+MilvaiCz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536&amp;utm_content=g+"><img align="center" alt="Google+" src="http://cdn.deliverio.cz/milvai1536/images/g+.jpg" style="display:block; border:0;" title="Google+" /></a> </td> <td align="center" height="42" width="56"><a href="https://www.facebook.com/milvaicz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_term=1536&amp;utm_content=facebook"><img align="center" alt="Facebook" src="http://cdn.deliverio.cz/milvai1536/images/fb.jpg" style="display:block; border:0;" title="Facebook" /></a> </td> <td align="center" height="42" width="56"><a href="http://blog.milvai.cz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_term=1536&amp;utm_content=blog"><img align="center" alt="Blog" src="http://cdn.deliverio.cz/milvai1536/images/blg.jpg" style="display:block; border:0;" title="Blog" /></a> </td> <td align="center" height="42" width="216">&nbsp; </td> </tr> </tbody> </table> <!--#--> <table align="center" cellpadding="0" cellspacing="0" height="20" width="600"> <tbody> <tr> <td>&nbsp; </td> </tr> </tbody> </table> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" width="600"><font style="font-family:Tahoma,Verdana,Arial; font-size:12px; color:#707070;" text-align="center">#milvaicz</font> </td> </tr> </tbody> </table> <!--konec--> <p>[CONSENT_FOOTER] </p> </body> </html> EOD; echo preg_replace('/<body(.*?)>((?:.|\n)*)<\/body>/', '<body><div$1>$2</div><div class="footer">FOOTER</div></body>', $html); echo "ERROR:" . preg_last_error();

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.0090.00916.61
8.3.50.0080.00816.77
8.3.40.0040.01518.91
8.3.30.0070.00718.88
8.3.20.0040.00420.37
8.3.10.0080.00021.87
8.3.00.0050.00223.78
8.2.180.0120.00318.54
8.2.170.0040.01819.08
8.2.160.0040.01122.96
8.2.150.0000.00925.66
8.2.140.0030.00524.66
8.2.130.0050.00320.08
8.2.120.0050.00326.35
8.2.110.0100.00022.50
8.2.100.0080.00418.16
8.2.90.0040.00419.41
8.2.80.0060.00318.05
8.2.70.0000.00817.88
8.2.60.0000.00718.15
8.2.50.0040.00418.07
8.2.40.0040.00422.55
8.2.30.0040.00419.62
8.2.20.0080.00018.12
8.2.10.0080.00018.15
8.2.00.0000.00818.11
8.1.280.0030.01725.92
8.1.270.0080.00324.09
8.1.260.0070.00328.09
8.1.250.0080.00028.09
8.1.240.0090.00022.67
8.1.230.0090.00319.25
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.60
8.1.190.0000.00817.50
8.1.180.0060.00318.10
8.1.170.0080.00018.75
8.1.160.0070.00020.97
8.1.150.0040.00419.00
8.1.140.0040.00419.69
8.1.130.0000.00717.79
8.1.120.0000.00817.64
8.1.110.0040.00817.59
8.1.100.0000.00817.79
8.1.90.0000.00717.77
8.1.80.0000.00817.55
8.1.70.0050.00217.71
8.1.60.0040.00417.91
8.1.50.0040.00417.71
8.1.40.0060.00317.73
8.1.30.0040.00417.91
8.1.20.0050.00317.81
8.1.10.0030.00517.80
8.1.00.0030.00617.62
8.0.300.0000.00818.77
8.0.290.0040.00417.25
8.0.280.0030.00318.58
8.0.270.0040.00417.41
8.0.260.0030.00317.05
8.0.250.0050.00317.37
8.0.240.0040.00417.33
8.0.230.0000.00717.19
8.0.220.0040.00417.29
8.0.210.0030.00317.26
8.0.200.0000.00717.32
8.0.190.0040.00417.18
8.0.180.0070.00017.21
8.0.170.0040.00417.17
8.0.160.0030.00517.13
8.0.150.0000.00717.16
8.0.140.0070.00017.23
8.0.130.0000.00613.64
8.0.120.0040.00417.27
8.0.110.0060.00317.19
8.0.100.0030.00517.20
8.0.90.0000.00717.05
8.0.80.0110.00417.24
8.0.70.0070.00017.13
8.0.60.0000.00717.09
8.0.50.0040.00417.18
8.0.30.0150.00417.51
8.0.20.0110.00817.46
8.0.10.0070.00017.17
8.0.00.0120.00917.18
7.4.330.0000.00516.80
7.4.320.0030.00316.71
7.4.300.0030.00616.81
7.4.290.0040.00416.82
7.4.280.0030.00616.79
7.4.270.0060.00316.70
7.4.260.0030.00516.80
7.4.250.0050.00216.66
7.4.240.0040.00416.85
7.4.230.0030.00316.79
7.4.220.0130.00316.88
7.4.210.0050.01216.95
7.4.200.0030.00316.55
7.4.160.0030.01316.70
7.4.150.0100.00717.40
7.4.140.0060.01217.86
7.4.130.0070.01116.86
7.4.120.0040.01316.89
7.4.110.0070.01016.95
7.4.100.0030.01616.77
7.4.90.0120.00616.84
7.4.80.0070.01019.39
7.4.70.0100.00616.90
7.4.60.0030.01316.82
7.4.50.0110.00416.77
7.4.40.0090.00916.78
7.4.30.0100.00716.90
7.4.00.0100.00915.07
7.3.330.0050.00013.29
7.3.320.0030.00313.39
7.3.310.0100.00016.43
7.3.300.0070.00016.55
7.3.290.0000.00716.56
7.3.280.0110.00716.56
7.3.270.0170.00017.40
7.3.260.0140.00316.58
7.3.250.0110.00716.50
7.3.240.0100.00716.63
7.3.230.0100.01316.72
7.3.210.0180.00016.71
7.3.200.0140.00719.39
7.3.190.0150.00316.61
7.3.180.0000.01616.58
7.3.170.0110.00616.73
7.3.160.0090.01616.65
7.3.120.0030.01515.05
7.3.110.0050.01114.98
7.3.100.0000.01514.85
7.3.90.0040.00914.75
7.3.80.0100.00515.02
7.3.70.0080.00815.05
7.3.60.0110.00415.05
7.3.50.0050.01014.93
7.3.40.0030.01014.83
7.3.30.0080.00515.06
7.3.20.0080.01016.56
7.3.10.0110.00316.84
7.3.00.0080.00416.82
7.2.330.0160.00316.73
7.2.320.0000.01716.86
7.2.310.0130.00716.61
7.2.300.0110.00716.71
7.2.290.0080.01516.70
7.2.250.0110.00515.02
7.2.240.0120.00515.22
7.2.230.0050.00915.18
7.2.220.0070.01015.19
7.2.210.0050.00815.21
7.2.200.0110.00515.14
7.2.190.0070.00815.12
7.2.180.0080.00815.13
7.2.170.0070.00815.14
7.2.160.0040.01215.08
7.2.150.0070.01117.00
7.2.140.0110.00216.57
7.2.130.0060.00617.02
7.2.120.0080.00816.95
7.2.110.0150.00017.14
7.2.100.0090.00617.05
7.2.90.0060.00617.12
7.2.80.0090.00616.70
7.2.70.0120.00317.09
7.2.60.0050.00717.02
7.2.50.0110.00717.05
7.2.40.0060.00917.04
7.2.30.0070.00716.72
7.2.20.0080.00717.07
7.2.10.0090.00616.85
7.2.00.0040.00918.11
7.1.330.0070.00815.98
7.1.320.0060.00415.97
7.1.310.0020.01115.84
7.1.300.0070.00815.71
7.1.290.0110.00515.88
7.1.280.0060.00815.79
7.1.270.0070.00715.88
7.1.260.0050.01015.78
7.1.250.0070.00415.50
7.1.200.0090.00315.77
7.1.100.0030.00618.16
7.1.70.0100.00516.87
7.1.60.0070.01319.27
7.1.50.0060.01617.10
7.1.00.0000.08022.55
7.0.200.0460.01115.17
7.0.60.0030.08321.85
7.0.50.0130.05317.92
7.0.40.0200.04320.06
7.0.30.0200.04020.13
7.0.20.0200.03720.13
7.0.10.0170.08020.05
7.0.00.0070.04320.16
5.6.280.0070.04726.40
5.6.210.0200.07325.89
5.6.200.0000.04723.48
5.6.190.0100.05026.00
5.6.180.0270.07325.71
5.6.170.0330.08325.92
5.6.160.0100.08725.74
5.6.150.0130.03723.51
5.6.140.0100.08723.47
5.6.130.0130.04323.43
5.6.120.0070.04026.33
5.6.110.0100.08726.39
5.6.100.0070.07726.46
5.6.90.0070.08326.42
5.6.80.0130.05725.87
5.5.350.0070.06725.69
5.5.340.0070.03723.38
5.5.330.0000.07725.79
5.5.320.0530.03725.56
5.5.310.0200.03725.63
5.5.300.0030.06323.34
5.5.290.0070.04323.34
5.5.280.0170.04326.21
5.5.270.0100.06726.23
5.5.260.0170.07026.18
5.5.250.0130.08326.03
5.5.240.0170.06725.60

preferences:
59.25 ms | 401 KiB | 5 Q