3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $CData = new DOMCdataSection('splithere!');$CDataSplit = $CData->splitText(5);echo get_class($CDataSplit), "\n";var_dump($CDataSplit->data);
Output for 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
DOMText string(5) "here!"
Output for 5.3.0 - 5.3.3
Warning: get_class() expects parameter 1 to be object, boolean given in /in/FZoZu on line 9 Notice: Trying to get property of non-object in /in/FZoZu on line 9 NULL
Output for 5.0.0 - 5.2.17
Notice: Trying to get property of non-object in /in/FZoZu on line 9 NULL
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domcdatasection in /in/FZoZu on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domcdatasection in /in/FZoZu on line 9