3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { \Dom\HTMLDocument::createFromString('', options: LIBXML_HTML_NODEFDTD); } catch (\Throwable $e) { echo $e->__toString(); } \Dom\HTMLDocument::createFromString('', options: Dom\NO_DEFAULT_NS);
Output for git.master_jit
ValueError: Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags: LIBXML_NOERROR, LIBXML_COMPACT, LIBXML_HTML_NOIMPLIED, Dom\HTML_NO_DEFAULT_NS) in /in/pZj10:4 Stack trace: #0 /in/pZj10(4): Dom\HTMLDocument::createFromString('', 4) #1 {main} Fatal error: Uncaught Error: Undefined constant "Dom\NO_DEFAULT_NS" in /in/pZj10:8 Stack trace: #0 {main} thrown in /in/pZj10 on line 8
Process exited with code 255.
Output for git.master
ValueError: Dom\HTMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags: LIBXML_NOERROR, LIBXML_COMPACT, LIBXML_HTML_NOIMPLIED, Dom\NO_DEFAULT_NS) in /in/pZj10:4 Stack trace: #0 /in/pZj10(4): Dom\HTMLDocument::createFromString('', 4) #1 {main} Fatal error: Uncaught Error: Undefined constant "Dom\NO_DEFAULT_NS" in /in/pZj10:8 Stack trace: #0 {main} thrown in /in/pZj10 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:
50.55 ms | 407 KiB | 5 Q