3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = <<<DATA <p>Portable <span class="shlt">Adobe</span> <span class="shlt">After</span> <span class="shlt">Effects</span> CC <span class="shlt">2018</span> 15.1.1.12 (x64)</p> DATA; $dom = new DOMDocument(); $dom->loadHTML($data); echo $dom->getElementsByTagName("p")[0]->textContent;
based on nWHu2
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
Portable Adobe After Effects CC 2018 15.1.1.12 (x64)
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Object does not implement ArrayAccess in /in/qNtkZ:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Object does not implement ArrayAccess in /in/qNtkZ:10 Stack trace: #0 {main}
Process exited with code 255.