3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url ="https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP"; $result = simplexml_load_file($url); foreach($xml->xpath('//product[starts-with(name/text(),"Shirt 12")]') as $product) { echo $result->Name; echo "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Warning: Undefined variable $xml in /in/UfVaN on line 6 Fatal error: Uncaught Error: Call to a member function xpath() on null in /in/UfVaN:6 Stack trace: #0 {main} thrown in /in/UfVaN 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:
41.13 ms | 402 KiB | 8 Q