3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $imp = new DOMImplementation(); $dtd = $imp->createDocumentType('LOAN_APPLICATION',null,'file:///17_LOANPROSPECTOR_REQUEST_4.0.DTD'); $dom = $imp->createDocument(null,LOAN_APPLICATION,$dtd); echo $dom->saveXML();
based on RYSme
Output for 7.2.0
Warning: Use of undefined constant LOAN_APPLICATION - assumed 'LOAN_APPLICATION' (this will throw an Error in a future version of PHP) in /in/L4bEY on line 6 <?xml version="1.0"?> <!DOCTYPE LOAN_APPLICATION SYSTEM "file:///17_LOANPROSPECTOR_REQUEST_4.0.DTD"> <LOAN_APPLICATION/>
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant LOAN_APPLICATION - assumed 'LOAN_APPLICATION' in /in/L4bEY on line 6 <?xml version="1.0"?> <!DOCTYPE LOAN_APPLICATION SYSTEM "file:///17_LOANPROSPECTOR_REQUEST_4.0.DTD"> <LOAN_APPLICATION/>