3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOF <child/> </person> </people> EOF; try{ $xml = XMLReader::xml($xml); /*$elem = new SimpleXMLElement($xml); foreach ($elem as $person) { printf("%s has got %d children.\n", $person['name'], $person->count()); } */ }catch(Exception $e){ echo "NO"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IH8I6
function name:  (null)
number of ops:  9
compiled vars:  !0 = $xml, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A++%3Cchild%2F%3E%0A+%3C%2Fperson%3E%0A%3C%2Fpeople%3E'
   10     1        INIT_STATIC_METHOD_CALL                                  'XMLReader', 'xml'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
          5      > JMP                                                      ->8
   17     6  E > > CATCH                                       last         'Exception'
   18     7    >   ECHO                                                     'NO'
   20     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.55 ms | 937 KiB | 14 Q