3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument('1.0'); for ($i=0; $i<=1000000; ++$i) { $root = $dom->createElement('message'); $dom->appendChild($root); $content = $dom->createElement('content'); $root->appendChild($content); $content->appendChild($dom->createTextNode('Example content baz')); }
Output for git.master
Warning: DOMDocument::createTextNode(): Memory allocation failed : building text in /in/YTE0k on line 8 Fatal error: Uncaught DOMException: Invalid State Error in /in/YTE0k:8 Stack trace: #0 /in/YTE0k(8): DOMDocument->createTextNode('Example content...') #1 {main} thrown in /in/YTE0k on line 8
Process exited with code 255.
Output for git.master_jit
Warning: DOMDocument::createElement(): Memory allocation failed in /in/YTE0k on line 4 Fatal error: Uncaught DOMException: Invalid State Error in /in/YTE0k:4 Stack trace: #0 /in/YTE0k(4): DOMDocument->createElement('message') #1 {main} thrown in /in/YTE0k on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: DOMDocument::createElement(): Memory allocation failed in /in/YTE0k on line 6 Fatal error: Uncaught DOMException: Invalid State Error in /in/YTE0k:6 Stack trace: #0 /in/YTE0k(6): DOMDocument->createElement('content') #1 {main} thrown in /in/YTE0k on line 6
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:
43.44 ms | 401 KiB | 8 Q