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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EeiIs
function name:  (null)
number of ops:  33
compiled vars:  !0 = $xml, !1 = $ns1, !2 = $job, !3 = $script
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3CSOAP-ENV%3AEnvelope+xmlns%3ASOAP-ENV%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22+xmlns%3ASOAP-ENC%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xmlns%3Axsd%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Ans2%3D%22http%3A%2F%2Froblox.com%2FRCCServiceSoap%22+xmlns%3Ans1%3D%22http%3A%2F%2Froblox.com%2F%22+xmlns%3Ans3%3D%22http%3A%2F%2Froblox.com%2FRCCServiceSoap12%22%3E%0A%3CSOAP-ENV%3ABody%3E%0A++%3Cns1%3AOpenJob%3E%0A++++++%3Cns1%3Ajob%3E%0A++++++++++%3Cns1%3Aid%3Etest%3C%2Fns1%3Aid%3E%0A++++++++++%3Cns1%3AexpirationInSeconds%3E30%3C%2Fns1%3AexpirationInSeconds%3E%0A++++++++++%3Cns1%3Acategory%3E0%3C%2Fns1%3Acategory%3E%0A++++++++++%3Cns1%3Acores%3E1%3C%2Fns1%3Acores%3E%0A++++++++++%3C%2Fns1%3Ajob%3E%0A++++++++++%3Cns1%3Ascript%3E%0A++++++++++++++%3Cns1%3Aname%3EScript%3C%2Fns1%3Aname%3E%0A++++++++++++++%3Cns1%3Ascript%3E%0A++++++++++++++++++game.Players%3AcreateLocalPlayer%280%29+%0A++++++++++++++++++game.Players.LocalPlayer%3ALoadCharacter%28%29+%0A++++++++++++++++++return+game%3Aservice%28%22ThumbnailGenerator%22%29%3Aclick%28%22PNG%22%2C+512%2C+512%2C+true%29%0A++++++++++++++%3C%2Fns1%3Ascript%3E%0A++++++++++++++%3Cns1%3Aarguments%3E%3C%2Fns1%3Aarguments%3E%0A++++++++++%3C%2Fns1%3Ascript%3E%0A++++++%3C%2Fns1%3AOpenJob%3E%0A%3C%2FSOAP-ENV%3ABody%3E%0A%3C%2FSOAP-ENV%3AEnvelope%3E'
   28     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   30     4        INIT_FCALL                                               'simplexml_load_string'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        INIT_METHOD_CALL                                         $6, 'children'
          8        SEND_VAL_EX                                              'SOAP-ENV'
          9        SEND_VAL_EX                                              <true>
         10        DO_FCALL                                      0  $7      
         11        FETCH_OBJ_R                                      ~8      $7, 'Body'
         12        INIT_METHOD_CALL                                         ~8, 'children'
         13        SEND_VAL_EX                                              'ns1'
         14        SEND_VAL_EX                                              <true>
         15        DO_FCALL                                      0  $9      
         16        ASSIGN                                                   !1, $9
   31    17        FETCH_OBJ_R                                      ~11     !1, 'OpenJob'
         18        FETCH_OBJ_R                                      ~12     ~11, 'job'
         19        INIT_ARRAY                                       ~13     ~12
         20        FETCH_OBJ_R                                      ~14     !1, 'OpenJob'
         21        FETCH_OBJ_R                                      ~15     ~14, 'script'
         22        ADD_ARRAY_ELEMENT                                ~13     ~15
         23        FETCH_LIST_R                                     $16     ~13, 0
         24        ASSIGN                                                   !2, $16
         25        FETCH_LIST_R                                     $18     ~13, 1
         26        ASSIGN                                                   !3, $18
         27        FREE                                                     ~13
   33    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !2
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1012 KiB | 16 Q