3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "http://54.186.220.102/Logins.xml"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/User') as $child) { if($child->attributes()['_un'] == "Farach"){ $child->UserInfo->attributes()['_cr'] = 100; } }
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/LFlnQ on line 4 Warning: simplexml_load_string(): http://54.186.220.102/Logins.xml in /in/LFlnQ on line 4 Warning: simplexml_load_string(): ^ in /in/LFlnQ on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on bool in /in/LFlnQ:6 Stack trace: #0 {main} thrown in /in/LFlnQ on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/LFlnQ on line 4 Warning: simplexml_load_string(): http://54.186.220.102/Logins.xml in /in/LFlnQ on line 4 Warning: simplexml_load_string(): ^ in /in/LFlnQ on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on false in /in/LFlnQ:6 Stack trace: #0 {main} thrown in /in/LFlnQ on line 6
Process exited with code 255.

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