3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <user> <name>Name</name> <jobs>Job 1</jobs> <jobs>Job 2</jobs> </user> XML; $sxml = simplexml_load_string($xml); foreach ($sxml->jobs as $job) { echo "Job: ", (string) $job, PHP_EOL; } $jobs = $sxml->xpath('jobs'); var_dump($jobs);
Output for git.master, git.master_jit, rfc.property-hooks
Job: Job 1 Job: Job 2 array(2) { [0]=> object(SimpleXMLElement)#3 (1) { [0]=> string(5) "Job 1" } [1]=> object(SimpleXMLElement)#2 (1) { [0]=> string(5) "Job 2" } }

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:
168.56 ms | 405 KiB | 5 Q