3v4l.org

run code in 300+ PHP versions simultaneously
<?php $writer = new XMLWriter; $writer->openURI('php://output'); $writer->startDocument('1.0', 'UTF-8'); $writer->startElement('response'); $writer->startElement('status'); $writer->startAttribute('code'); $writer->text(htmlspecialchars("<>\u{b}", ENT_NOQUOTES | ENT_XML1 | ENT_DISALLOWED, true)); $writer->endAttribute(); $writer->endElement(); $writer->endElement(); $writer->endDocument(); var_dump(bin2hex (" " . "\u{b}"));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: htmlspecialchars(): Charset "1" is not supported, assuming UTF-8 in /in/BLiEC on line 9 <?xml version="1.0" encoding="UTF-8"?> <response><status code="&amp;lt;&amp;gt;�"/></response> string(4) "0b0b"

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:
34.46 ms | 401 KiB | 8 Q