3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dtd = "abc.DTD"; $root = 'LOAN_APPLICATION'; $imp = new DOMImplementation(); // create DTD $dtd = $imp->createDocumentType($root,null,static::REPORT_DTD); // create document $dom = $imp->createDocument(null,$root,$dtd); $dom->formatOutput = true; $base = $dom->getElementsByTagName($root)->item(0); // create extension $ext = $dom->createElement('EXTENSION_LOAN_APPLICATION'); $ext->setAttribute('FRELoanProspectorVersionIdentifier','4.0'); // create function request $fr = $dom->createElement('FUNCTION_REQUEST'); $fr->setAttribute('_Type','PollingRequest'); // create requesting party $frp = $dom->createElement('FRE_REQUESTING_PARTY'); $frp->setAttribute('SellerServicerNumber',static::SERVICE_SELLER_ID); $frp->setAttribute('UserIdentifier',static::SERVICE_USER_ID); $frp->setAttribute('Password',static::SERVICE_PASSWORD); // create polling status $ps = $dom->createElement('POLLING_STATUS'); $ps->setAttribute('LoanProspectorAsynchronousIdentifier',$this->reference); // build $ext->appendChild($fr); $ext->appendChild($frp); $ext->appendChild($ps); $base->appendChild($ext); print $dom->saveXML();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Cannot access "static" when no class scope is active in /in/m1vll:8 Stack trace: #0 {main} thrown in /in/m1vll 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:
49.33 ms | 401 KiB | 8 Q