3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXmlElement('<xml><body></body></xml>'); var_dump($xml->body->div[0]->p); var_dump($xml->foo->div->p); var_dump($xml->body[0]->p); var_dump($xml->body->count()); var_dump($xml->body->div->count());
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Attempt to read property "p" on null in /in/aN1L6 on line 5 NULL Warning: Attempt to read property "p" on null in /in/aN1L6 on line 6 NULL object(SimpleXMLElement)#4 (0) { } int(1) int(0)

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:
53.67 ms | 401 KiB | 8 Q