3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<xml><first-node>foo</first-node><second-node><nested-node>bar</nested-node></second-node><third-node>baz</third-node></xml>"; $a = new SimpleXMLElement($xml); var_export((array)$a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F4DfI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $xml, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cxml%3E%3Cfirst-node%3Efoo%3C%2Ffirst-node%3E%3Csecond-node%3E%3Cnested-node%3Ebar%3C%2Fnested-node%3E%3C%2Fsecond-node%3E%3Cthird-node%3Ebaz%3C%2Fthird-node%3E%3C%2Fxml%3E'
    4     1        NEW                                              $3      'SimpleXMLElement'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_export'
          6        CAST                                          7  ~6      !1
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.74 ms | 996 KiB | 14 Q