3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fc = simplexml_load_string('<p:FatturaElettronica versione="1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:p="http://www.fatturapa.gov.it/sdi/fatturapa/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><FatturaElettronicaHeader><FatturaElettronicaBody></FatturaElettronicaBody></FatturaElettronicaHeader></p:FatturaElettronica> ','SimpleXMLElement', LIBXML_NOCDATA); /* creo un DOMElements dal SimpleXMLElements */ $domdocument = dom_import_simplexml($fc); /* Creo un DOMElements per ogni elemento della fattura */ $dt = dom_import_simplexml($this->getDatiTrasmissione()); $dt = $domdocument->ownerDocument->FatturaElettronicaHeader->importNode($dt, TRUE); $domdocument->appendChild($dt);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Using $this when not in object context in /in/BpaNP:8 Stack trace: #0 {main} thrown in /in/BpaNP on line 8
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:
36.4 ms | 401 KiB | 8 Q