3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< HTML <html> <head> <script type="text/javascript"> //... function printJSPage() { var printwin=window.open('','haha','top=100,left=100,width=800,height=600'); printwin.document.writeln(' <table border="0" cellspacing="5" cellpadding="0" width="100%">'); printwin.document.writeln(' <tr>'); printwin.document.writeln(' <td align="left" valign="bottom">'); //... printwin.document.writeln('</td>'); //... } </script> </head> </html> HTML; libxml_use_internal_errors(true); $dom = new DOMDocument(); $dom->loadHTML($html); libxml_use_internal_errors(false); echo $dom->saveHTML();
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><head><script type="text/javascript"> //... function printJSPage() { var printwin=window.open('','haha','top=100,left=100,width=800,height=600'); printwin.document.writeln(' <table border="0" cellspacing="5" cellpadding="0" width="100%">'); printwin.document.writeln(' <tr>'); printwin.document.writeln(' <td align="left" valign="bottom">'); //... printwin.document.writeln(''); //... } </script></head></html>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.55 ms | 402 KiB | 8 Q