3v4l.org

run code in 300+ PHP versions simultaneously
<?php $soapEnv = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> </soap:Envelope>'; var_dump($xml); $obj = new SimpleXMLElement($xml); var_dump($obj);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $xml in /in/dmDZQ on line 5 NULL Warning: Undefined variable $xml in /in/dmDZQ on line 7 Deprecated: SimpleXMLElement::__construct(): Passing null to parameter #1 ($data) of type string is deprecated in /in/dmDZQ on line 7 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/dmDZQ:7 Stack trace: #0 /in/dmDZQ(7): SimpleXMLElement->__construct('') #1 {main} thrown in /in/dmDZQ on line 7
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:
37.39 ms | 401 KiB | 8 Q