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', 100000).'"> ]> <kaboom>'.str_repeat('&a;', 500).'</kaboom>'; $doc = new DOMDocument(); $doc->loadXML($s2); echo strlen($doc->lastChild->nodeValue);
based on nGqOq
Output for 5.6.28, 7.0.14 - 7.1.0
2.9.4 50000000
Output for 5.5.24 - 5.6.15, 5.6.17 - 5.6.21, 7.0.1 - 7.0.6
2.9.3 50000000
Output for 5.4.35 - 5.4.45, 5.6.16, 7.0.0
2.9.2 50000000
Output for 5.3.25 - 5.3.29, 5.4.16 - 5.4.34
2.9.1 50000000
Output for 5.3.15 - 5.3.24, 5.4.5 - 5.4.15
2.8.0 50000000
Output for 5.1.0 - 5.3.14, 5.4.0 - 5.4.4
2.7.8 50000000
Output for 5.0.0 - 5.0.5
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/9Ph6V on line 3 LIBXML_DOTTED_VERSION 50000000
Output for 4.3.2 - 4.4.9
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/9Ph6V on line 3 LIBXML_DOTTED_VERSION Fatal error: Cannot instantiate non-existent class: domdocument in /in/9Ph6V 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/9Ph6V on line 3 LIBXML_DOTTED_VERSION Fatal error: Cannot instantiate non-existent class: domdocument in /in/9Ph6V on line 10