3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strony [ <!ENTITY shp SYSTEM "php://filter/convert.base64-encode/resource=/bin/bash"> ] > <strony> <strona id="cccc"> <nazwa>bbbb</nazwa> <url>http://www.aaaa.pl/</url> <komentarz> &shp;</komentarz> </strona> </strony>'; $strony = new SimpleXMLElement($xml, LIBXML_NOENT); foreach($strony->strona->komentarz as $komentarz) echo "$komentarz\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: SimpleXMLElement::__construct(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/tmp:/in:/etc) in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(php://filter/convert.base64-encode/resource=/bin/bash): Failed to open stream: operation failed in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): I/O warning : failed to load external entity "php://filter/convert.base64-encode/resource=/bin/bash" in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): Entity: line 9: parser error : Failure to process entity shp in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): <komentarz> &shp;</komentarz> in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): ^ in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): Entity: line 9: parser error : Entity 'shp' not defined in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): <komentarz> &shp;</komentarz> in /in/kRYuQ on line 14 Warning: SimpleXMLElement::__construct(): ^ in /in/kRYuQ on line 14 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/kRYuQ:14 Stack trace: #0 /in/kRYuQ(14): SimpleXMLElement->__construct('<?xml version="...', 2) #1 {main} thrown in /in/kRYuQ on line 14
Process exited with code 255.

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:
53.93 ms | 402 KiB | 8 Q