3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $msg = <<<HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Parrainage</title> <style type="text/css"> body {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;} body {margin:0; padding:0;} table td {border-collapse:collapse;} p {margin:0; padding:0; margin-bottom:0;} h1, h2, h3, h4, h5, h6 { color: black; line-height: 100%%; } a, a:link { color:#FB8B1E; text-decoration: underline; } body, #body_style { background:#eee; min-height:1000px; color:#333; font-family:Arial, Helvetica, sans-serif; font-size:12px; } span.yshortcuts { color:#000; background-color:none; border:none;} span.yshortcuts:hover, span.yshortcuts:active, span.yshortcuts:focus {color:#000; background-color:none; border:none;} a:visited { color: ; text-decoration: underline} a:focus { color: ; text-decoration: underline} a:hover { color: #FB8B1E; text-decoration: underline} </style> </head> <body style="background:#eee; min-height:1000px; color:#333;font-family:Arial, Helvetica, sans-serif; font-size:12px" alink="#FB8B1E" link="#FB8B1E" bgcolor="#EEEEEE" text="#333333" yahoo="fix"> <div id="body_style" style="padding:15px;text-align:center;"> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="600" align="center" style="background-color:#fff;margin: 0 auto 20px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="540" align="center" style="margin:20px auto;"> <tr> <td style="border-bottom:1px solid #ccc;" align="center"> <p style="margin:0 0 20px;text-align:center;"> <img src="http://www.appro-auto.com/uploads/template/img/logo.png" alt="Appro Automobiles" width="195" height="61" /> </p> </td> </tr> <tr> <td style="text-align:left;" align="left"> <h1 style="font-size:22px;color:#F15B31;text-transform:uppercase;margin:25px 0 20px;"> Parrainage </h1> <p style="font-size:12px;color:#555;margin:0 0 20px;"> Parrain : %s %s (%s) </p> <p style="font-size:12px;color:#555;margin:0 0 20px;"> Desinataire : %s %s (%s) </p> </td> </tr> </table> </td> </tr> </table> </div> <!--end wrapper--> </body> </html> HTML; echo sprintf($msg, 1, 2, 3, 4, 5, 6);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Parrainage</title> <style type="text/css"> body {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;} body {margin:0; padding:0;} table td {border-collapse:collapse;} p {margin:0; padding:0; margin-bottom:0;} h1, h2, h3, h4, h5, h6 { color: black; line-height: 100%; } a, a:link { color:#FB8B1E; text-decoration: underline; } body, #body_style { background:#eee; min-height:1000px; color:#333; font-family:Arial, Helvetica, sans-serif; font-size:12px; } span.yshortcuts { color:#000; background-color:none; border:none;} span.yshortcuts:hover, span.yshortcuts:active, span.yshortcuts:focus {color:#000; background-color:none; border:none;} a:visited { color: ; text-decoration: underline} a:focus { color: ; text-decoration: underline} a:hover { color: #FB8B1E; text-decoration: underline} </style> </head> <body style="background:#eee; min-height:1000px; color:#333;font-family:Arial, Helvetica, sans-serif; font-size:12px" alink="#FB8B1E" link="#FB8B1E" bgcolor="#EEEEEE" text="#333333" yahoo="fix"> <div id="body_style" style="padding:15px;text-align:center;"> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="600" align="center" style="background-color:#fff;margin: 0 auto 20px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="540" align="center" style="margin:20px auto;"> <tr> <td style="border-bottom:1px solid #ccc;" align="center"> <p style="margin:0 0 20px;text-align:center;"> <img src="http://www.appro-auto.com/uploads/template/img/logo.png" alt="Appro Automobiles" width="195" height="61" /> </p> </td> </tr> <tr> <td style="text-align:left;" align="left"> <h1 style="font-size:22px;color:#F15B31;text-transform:uppercase;margin:25px 0 20px;"> Parrainage </h1> <p style="font-size:12px;color:#555;margin:0 0 20px;"> Parrain : 1 2 (3) </p> <p style="font-size:12px;color:#555;margin:0 0 20px;"> Desinataire : 4 5 (6) </p> </td> </tr> </table> </td> </tr> </table> </div> <!--end wrapper--> </body> </html>