3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <PowerOn Description='Engine ON' DateTime='20150318_150553' /> <Ticket Amount='0' Payment='Cash' Description='PRINT REQUEST: OK!!!' DateTime='20150318_150555' /> <Return Amount='700' Payment='Cash' Description='REST PROVIDED' DateTime='20150318_150601' /> <Program id='19' Amount='1000' Payment='Cash' Description='Comfort XL 6pz' DateTime='20150318_203139' /> <Program id='20' Amount='600' Payment='Cash' Description='TOUCH &amp; FEEL CONTROL X6' DateTime='20150318_225334' /> <Ticket Amount='0' Payment='Cash' Description='PRINT REQUEST: OK!!!' DateTime='20150318_225405' /> <Return Amount='1400' Payment='Cash' Description='REST PROVIDED' DateTime='20150318_225417' /> </root>"; $xml = simplexml_load_string( $xml); var_dump($xml->children()); //foreach( $xml->xpath( './/child') as $child) { // echo $child->attributes()['name'] . "\n"; //}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FqNlO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%0A%3CPowerOn+Description%3D%27Engine+ON%27+DateTime%3D%2720150318_150553%27+%2F%3E%0A%3CTicket+Amount%3D%270%27+Payment%3D%27Cash%27+Description%3D%27PRINT+REQUEST%3A+OK%21%21%21%27+DateTime%3D%2720150318_150555%27+%2F%3E%0A%3CReturn+Amount%3D%27700%27+Payment%3D%27Cash%27+Description%3D%27REST+PROVIDED%27+DateTime%3D%2720150318_150601%27+%2F%3E%0A%3CProgram+id%3D%2719%27+Amount%3D%271000%27+Payment%3D%27Cash%27+Description%3D%27Comfort+XL+6pz%27+DateTime%3D%2720150318_203139%27+%2F%3E%0A%3CProgram+id%3D%2720%27+Amount%3D%27600%27+Payment%3D%27Cash%27+Description%3D%27TOUCH+%26amp%3B+FEEL+CONTROL+X6%27+DateTime%3D%2720150318_225334%27+%2F%3E%0A%3CTicket+Amount%3D%270%27+Payment%3D%27Cash%27+Description%3D%27PRINT+REQUEST%3A+OK%21%21%21%27+DateTime%3D%2720150318_225405%27+%2F%3E%0A%3CReturn+Amount%3D%271400%27+Payment%3D%27Cash%27+Description%3D%27REST+PROVIDED%27+DateTime%3D%2720150318_225417%27+%2F%3E%0A%0A%3C%2Froot%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
   15     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !0, 'children'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
   18    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.78 ms | 1399 KiB | 17 Q