3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOL <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://roblox.com/RCCServiceSoap" xmlns:ns1="http://roblox.com/" xmlns:ns3="http://roblox.com/RCCServiceSoap12"> <SOAP-ENV:Body> <ns1:OpenJob> <ns1:job> <ns1:id>test</ns1:id> <ns1:expirationInSeconds>30</ns1:expirationInSeconds> <ns1:category>0</ns1:category> <ns1:cores>1</ns1:cores> </ns1:job> <ns1:script> <ns1:name>Script</ns1:name> <ns1:script> game.Players:createLocalPlayer(0) game.Players.LocalPlayer:LoadCharacter() return game:service("ThumbnailGenerator"):click("PNG", 512, 512, true) </ns1:script> <ns1:arguments></ns1:arguments> </ns1:script> </ns1:OpenJob> </SOAP-ENV:Body> </SOAP-ENV:Envelope> EOL; libxml_use_internal_errors(true); $ns1 = simplexml_load_string($xml)->children('SOAP-ENV', true)->Body->children('ns1', true); [$job, $script] = [$ns1->OpenJob->job, $ns1->OpenJob->script]; var_dump($job, $script);
Output for git.master, git.master_jit
object(SimpleXMLElement)#3 (4) { ["id"]=> string(4) "test" ["expirationInSeconds"]=> string(2) "30" ["category"]=> string(1) "0" ["cores"]=> string(1) "1" } object(SimpleXMLElement)#4 (3) { ["name"]=> string(6) "Script" ["script"]=> string(217) " game.Players:createLocalPlayer(0) game.Players.LocalPlayer:LoadCharacter() return game:service("ThumbnailGenerator"):click("PNG", 512, 512, true) " ["arguments"]=> object(SimpleXMLElement)#1 (0) { } }
Output for rfc.property-hooks
object(SimpleXMLElement)#4 (4) { ["id"]=> string(4) "test" ["expirationInSeconds"]=> string(2) "30" ["category"]=> string(1) "0" ["cores"]=> string(1) "1" } object(SimpleXMLElement)#5 (3) { ["name"]=> string(6) "Script" ["script"]=> string(217) " game.Players:createLocalPlayer(0) game.Players.LocalPlayer:LoadCharacter() return game:service("ThumbnailGenerator"):click("PNG", 512, 512, true) " ["arguments"]=> object(SimpleXMLElement)#6 (0) { } }

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:
31.6 ms | 408 KiB | 5 Q