3v4l.org

run code in 300+ PHP versions simultaneously
<?php $CData = new DOMText('splithere!');$CDataSplit = $CData->splitText(5);echo get_class($CDataSplit), "\n";var_dump($CDataSplit);
Output for git.master, git.master_jit, rfc.property-hooks
DOMText object(DOMText)#2 (20) { ["wholeText"]=> string(5) "here!" ["data"]=> string(5) "here!" ["length"]=> int(5) ["previousElementSibling"]=> NULL ["nextElementSibling"]=> NULL ["nodeName"]=> string(5) "#text" ["nodeValue"]=> string(5) "here!" ["nodeType"]=> int(3) ["parentNode"]=> NULL ["childNodes"]=> string(22) "(object value omitted)" ["firstChild"]=> NULL ["lastChild"]=> NULL ["previousSibling"]=> NULL ["nextSibling"]=> NULL ["attributes"]=> NULL ["namespaceURI"]=> NULL ["prefix"]=> string(0) "" ["localName"]=> NULL ["baseURI"]=> NULL ["textContent"]=> string(5) "here!" }

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:
49.31 ms | 402 KiB | 8 Q