3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link http://stackoverflow.com/a/29864193/367456 */ $buffer = <<<XML <?xml version="1.0"?><!DOCTYPE xml <!-- ==================================== xhtml-lat1.ent ==================================== --> <!-- Portions (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --> <!-- Character entity set. Typical invocation: <!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> %HTMLlat1; --> <!ENTITY nbsp "&#160;"> <!-- no-break space = non-breaking space, U+00A0 ISOnum --> ]><foo>&nbsp;</foo> XML; libxml_disable_entity_loader(false); $xml = simplexml_load_string($buffer); $xml->asXML('php://output'); $xml = simplexml_load_string($buffer, 'SimpleXMLElement', LIBXML_NOENT); $xml->asXML('php://output');
Output for git.master, git.master_jit
Deprecated: Function libxml_disable_entity_loader() is deprecated in /in/rg5XA on line 33 Warning: simplexml_load_string(): Entity: line 3: parser error : DOCTYPE improperly terminated in /in/rg5XA on line 35 Warning: simplexml_load_string(): <!-- in /in/rg5XA on line 35 Warning: simplexml_load_string(): ^ in /in/rg5XA on line 35 Warning: simplexml_load_string(): Entity: line 3: parser error : Start tag expected, '<' not found in /in/rg5XA on line 35 Warning: simplexml_load_string(): <!-- in /in/rg5XA on line 35 Warning: simplexml_load_string(): ^ in /in/rg5XA on line 35 Fatal error: Uncaught Error: Call to a member function asXML() on bool in /in/rg5XA:36 Stack trace: #0 {main} thrown in /in/rg5XA on line 36
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Function libxml_disable_entity_loader() is deprecated in /in/rg5XA on line 33 Warning: simplexml_load_string(): Entity: line 3: parser error : DOCTYPE improperly terminated in /in/rg5XA on line 35 Warning: simplexml_load_string(): <!-- in /in/rg5XA on line 35 Warning: simplexml_load_string(): ^ in /in/rg5XA on line 35 Warning: simplexml_load_string(): Entity: line 3: parser error : Start tag expected, '<' not found in /in/rg5XA on line 35 Warning: simplexml_load_string(): <!-- in /in/rg5XA on line 35 Warning: simplexml_load_string(): ^ in /in/rg5XA on line 35 Fatal error: Uncaught Error: Call to a member function asXML() on false in /in/rg5XA:36 Stack trace: #0 {main} thrown in /in/rg5XA on line 36
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:
72.11 ms | 402 KiB | 8 Q