3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = "http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6"; $xml = simplexml_load_file($link) -> product; foreach($xml -> item as $item){ echo "<strong>prod_id:</strong> ".utf8_decode($item -> prod_id)."<br />"; echo "<strong>brand:</strong> ".utf8_decode($item -> brand)."<br />"; echo "<br />"; } ?>
Output for git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for webmax.hayamax.com.br failed: System error in /in/MmSDW on line 3 Warning: simplexml_load_file(http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6): Failed to open stream: php_network_getaddresses: getaddrinfo for webmax.hayamax.com.br failed: System error in /in/MmSDW on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6" in /in/MmSDW on line 3 Warning: Attempt to read property "product" on bool in /in/MmSDW on line 3 Warning: Attempt to read property "item" on null in /in/MmSDW on line 4 Warning: foreach() argument must be of type array|object, null given in /in/MmSDW on line 4
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for webmax.hayamax.com.br failed: System error in /in/MmSDW on line 3 Warning: simplexml_load_file(http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6): Failed to open stream: php_network_getaddresses: getaddrinfo for webmax.hayamax.com.br failed: System error in /in/MmSDW on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://webmax.hayamax.com.br/crossdock/servlet/CrossDockingServlet.class.php?action=crossDockingPrice&customerId=140040&compress=0&canal=C6" in /in/MmSDW on line 3 Warning: Attempt to read property "product" on false in /in/MmSDW on line 3 Warning: Attempt to read property "item" on null in /in/MmSDW on line 4 Warning: foreach() argument must be of type array|object, null given in /in/MmSDW on line 4

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:
55.35 ms | 403 KiB | 8 Q