3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo LIBXML_DOTTED_VERSION; $s2 = '<?xml version="1.0"?><!DOCTYPE kaboom [ <!ENTITY a "'.str_repeat('a', 200000).'"> ]> <kaboom>'.str_repeat('&a;', 500).'</kaboom>'; $doc = new DOMDocument(); $doc->loadXML($s2); echo strlen($doc->lastChild->nodeValue);
based on 9kUHJ
Output for 7.0.14 - 7.1.0
2.9.4 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000032 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 7.0.1 - 7.0.6
2.9.3 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000032 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 7.0.0
2.9.2 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000032 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for hhvm-3.12.0
2.9.3100000000mallctl opt.prof: No such file or directory (2) Fatal error: request has exceeded memory limit in /in/nGqOq on line 12
Process exited with code 255.
Output for hhvm-3.10.0
2.9.2100000000 Fatal error: request has exceeded memory limit in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.6.28
2.9.4 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.5.24 - 5.6.15, 5.6.17 - 5.6.21
2.9.3 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.4.34 - 5.4.45, 5.6.16
2.9.2 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.3.25 - 5.3.29, 5.4.16 - 5.4.32
2.9.1 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.3.15 - 5.3.24, 5.4.5 - 5.4.15
2.8.0 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.2.1 - 5.3.14, 5.4.0 - 5.4.4
2.7.8 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 100000001 bytes) in /in/nGqOq on line 12
Process exited with code 255.
Output for 5.1.0, 5.1.2 - 5.2.0
2.7.8100000000
Output for 5.1.1
2.7.8
Process exited with code 143.
Output for 5.0.0 - 5.0.5
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/nGqOq on line 3 LIBXML_DOTTED_VERSION100000000
Output for 4.3.2 - 4.4.9
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/nGqOq on line 3 LIBXML_DOTTED_VERSION Fatal error: Cannot instantiate non-existent class: domdocument in /in/nGqOq on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/nGqOq on line 3 LIBXML_DOTTED_VERSION Fatal error: Cannot instantiate non-existent class: domdocument in /in/nGqOq on line 10