3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <smses count="1099"> <sms protocol="0" address="" date="" type="" subject="" body="" toa="null" sc_toa="null" service_center="null" read="1" status="-1" locked="0" date_sent="null" readable_date="" contact_name="" /> </smses> XML; $dom = new DOMDocument(); $dom->loadXML($xml); foreach ($xml->smses as $sms) { var_dump($sms); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Attempt to read property "smses" on string in /in/pkdkY on line 13 Warning: foreach() argument must be of type array|object, null given in /in/pkdkY on line 13

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