3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '<!DOCTYPE sgml [ <!ELEMENT sgml ANY> <!ENTITY % author "William Shakespeare"> ]> <sgml>&author;</sgml>'; $dom = new DOMDocument; $dom->resolveExternals = true; $dom->loadXML($var); var_dump($dom->doctype->entities->length);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: DOMDocument::loadXML(): Entity 'author' not defined in Entity, line: 5 in /in/MVeiR on line 11 Warning: Attempt to read property "entities" on null in /in/MVeiR on line 13 Warning: Attempt to read property "length" on null in /in/MVeiR on line 13 NULL

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