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 8.4.1 - 8.4.14, 8.5.0
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 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28
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) { } }

preferences:
85.52 ms | 411 KiB | 5 Q