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" 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.0150.00616.88
8.3.50.0120.00316.87
8.3.40.0090.00619.05
8.3.30.0140.00418.90
8.3.20.0060.00320.35
8.3.10.0080.00023.55
8.3.00.0040.00423.79
8.2.180.0170.00318.66
8.2.170.0100.00619.26
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0000.00824.66
8.2.130.0080.00019.95
8.2.120.0040.00426.35
8.2.110.0070.00721.26
8.2.100.0100.00317.97
8.2.90.0030.00517.96
8.2.80.0030.00618.15
8.2.70.0000.00817.75
8.2.60.0050.00318.16
8.2.50.0000.00818.07
8.2.40.0050.00322.35
8.2.30.0000.00719.55
8.2.20.0000.00718.02
8.2.10.0050.00318.06
8.2.00.0040.00418.08
8.1.270.0060.00323.96
8.1.260.0070.00328.09
8.1.250.0040.00428.09
8.1.240.0080.00822.70
8.1.230.0070.00421.10
8.1.220.0000.00817.79
8.1.210.0080.00018.95
8.1.200.0030.00717.60
8.1.190.0030.00517.60
8.1.180.0030.00618.10
8.1.170.0030.00618.73
8.1.160.0040.00420.84
8.1.150.0000.00818.93
8.1.140.0030.00719.65
8.1.130.0040.00417.78
8.1.120.0040.00417.60
8.1.110.0030.00617.55
8.1.100.0060.00317.76
8.1.90.0000.00717.66
8.1.80.0090.00017.73
8.1.70.0000.00717.70
8.1.60.0040.00417.76
8.1.50.0080.00017.63
8.1.40.0000.00817.73
8.1.30.0040.00417.85
8.1.20.0030.00617.73
8.1.10.0040.00417.78
8.1.00.0080.00017.61
8.0.300.0040.00420.11
8.0.290.0070.00017.13
8.0.280.0000.00718.52
8.0.270.0040.00417.27
8.0.260.0030.00317.38
8.0.250.0070.00017.19
8.0.240.0070.00017.22
8.0.230.0070.00017.20
8.0.220.0030.00417.26
8.0.210.0030.00317.21
8.0.200.0070.00017.30
8.0.190.0040.00417.26
8.0.180.0070.00017.14
8.0.170.0040.00417.20
8.0.160.0040.00417.13
8.0.150.0040.00417.14
8.0.140.0050.00217.11
8.0.130.0030.00313.64
8.0.120.0060.00317.17
8.0.110.0070.00017.08
8.0.100.0050.00317.02
8.0.90.0000.00817.17
8.0.80.0080.00917.12
8.0.70.0030.00617.23
8.0.60.0020.00517.03
8.0.50.0040.00416.96
8.0.30.0090.01017.35
8.0.20.0120.01317.42
8.0.10.0040.00417.10
8.0.00.0110.00717.07
7.4.330.0000.00516.74
7.4.320.0070.00016.88
7.4.300.0080.00016.78
7.4.290.0000.00716.80
7.4.280.0030.00616.77
7.4.270.0020.00516.80
7.4.260.0090.00016.70
7.4.250.0040.00416.75
7.4.240.0040.00316.79
7.4.230.0020.00516.85
7.4.220.0160.00716.88
7.4.210.0040.01116.84
7.4.200.0050.00316.99
7.4.160.0030.01316.77
7.4.150.0070.01117.40
7.4.140.0140.00817.86
7.4.130.0060.01216.84
7.4.120.0100.01016.76
7.4.110.0090.00616.64
7.4.100.0120.00916.87
7.4.90.0120.00616.85
7.4.80.0070.01019.39
7.4.70.0060.01216.85
7.4.60.0000.02116.56
7.4.50.0090.00916.79
7.4.40.0120.00916.73
7.4.30.0000.02116.90
7.4.00.0060.00915.04
7.3.330.0020.00213.36
7.3.320.0050.00013.29
7.3.310.0050.00216.52
7.3.300.0030.00316.55
7.3.290.0030.00316.57
7.3.280.0130.00716.55
7.3.270.0110.00717.40
7.3.260.0210.00416.86
7.3.250.0150.00616.66
7.3.240.0050.01316.54
7.3.230.0110.00716.81
7.3.210.0040.01416.70
7.3.200.0160.00419.39
7.3.190.0150.00816.77
7.3.180.0090.00616.52
7.3.170.0150.00816.86
7.3.160.0040.01816.50
7.2.330.0100.01016.81
7.2.320.0110.00716.81
7.2.310.0070.01016.68
7.2.300.0040.01816.62
7.2.290.0090.00916.73
7.2.60.0070.00717.16
7.2.00.0000.01819.24
7.1.200.0000.01415.86
7.1.100.0000.01018.29
7.1.70.0080.00417.25
7.1.60.0060.00919.27
7.1.50.0040.01816.79
7.1.00.0130.06722.51
7.0.200.0100.00716.85
7.0.60.0170.07021.87
7.0.50.0100.04317.85
7.0.40.0130.03720.16
7.0.30.0330.07320.37
7.0.20.0100.04720.12
7.0.10.0000.09720.24
7.0.00.0100.08020.24
5.6.280.0070.04325.29
5.6.210.0200.06324.74
5.6.200.0130.03722.25
5.6.190.0070.07024.67
5.6.180.0200.07324.48
5.6.170.0230.05724.55
5.6.160.0100.08324.53
5.6.150.0170.07322.28
5.6.140.0070.06722.29
5.6.130.0030.04722.11
5.6.120.0100.04725.09
5.6.110.0000.07325.05
5.6.100.0200.06025.07
5.6.90.0130.06324.92
5.6.80.0100.07724.43
5.5.350.0130.07724.48
5.5.340.0070.04022.00
5.5.330.0130.06724.13
5.5.320.0300.05324.35
5.5.310.0200.04324.27
5.5.300.0070.08721.98
5.5.290.0170.07322.03
5.5.280.0000.04724.95
5.5.270.0000.06724.91
5.5.260.0200.07724.68
5.5.250.0100.03724.75
5.5.240.0130.08324.08

preferences:
76 ms | 400 KiB | 5 Q