3v4l.org

run code in 500+ PHP versions simultaneously
<?php $source = <<<DATA <rows> <item> <e>E</e> <f>F</f> </item> </rows> DATA; $xml = simplexml_load_string($source); $result = array_values(json_decode(json_encode($xml), true)); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FtAcV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $source, !1 = $xml, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Crows%3E%0A%3Citem%3E%0A%3Ce%3EE%3C%2Fe%3E%0A%3Cf%3EF%3C%2Ff%3E%0A%3C%2Fitem%3E%0A%3C%2Frows%3E'
   12     1        INIT_FCALL                                                   'simplexml_load_string'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
   13     5        INIT_FCALL                                                   'array_values'
          6        INIT_FCALL                                                   'json_decode'
          7        INIT_FCALL                                                   'json_encode'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                             $6      
         10        SEND_VAR                                                     $6
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $7      
         13        SEND_VAR                                                     $7
         14        DO_ICALL                                             $8      
         15        ASSIGN                                                       !2, $8
   14    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !2
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.14 ms | 2018 KiB | 18 Q