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,"asdasdas.DTD"); // create document $dom = $imp->createDocument(null,$root,$dtd); $dom->formatOutput = true; $base = $dom->getElementsByTagName($root)->item(0); $base->setAttribute("MISMOVersionID", "2.4"); $DI = $dom->createElement("_DATA_INFORMATION"); $DVN = $dom->createElement("DATA_VERSION"); $DVN->setAttribute("_Number", "S4.2.02"); $DI->appendChild($DVN); $base->appendChild($DI); /*// 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',"12345"); $frp->setAttribute('UserIdentifier',"adasdasd"); $frp->setAttribute('Password',"12315612"); // create polling status $ps = $dom->createElement('POLLING_STATUS'); $ps->setAttribute('LoanProspectorAsynchronousIdentifier',"123156465"); // 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
Deprecated: DOMImplementation::createDocumentType(): Passing null to parameter #2 ($publicId) of type string is deprecated in /in/ZpjW7 on line 8 <?xml version="1.0"?> <!DOCTYPE LOAN_APPLICATION SYSTEM "asdasdas.DTD"> <LOAN_APPLICATION MISMOVersionID="2.4"> <_DATA_INFORMATION> <DATA_VERSION _Number="S4.2.02"/> </_DATA_INFORMATION> </LOAN_APPLICATION>

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