3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOF <child/> </person> </people> EOF; try{ $xmlO = new XMLReader(); $xmlO->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 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pv0u9
function name:  (null)
number of ops:  11
compiled vars:  !0 = $xml, !1 = $xmlO, !2 = $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        NEW                                              $4      'XMLReader'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
   11     4        INIT_METHOD_CALL                                         !1, 'xml'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > JMP                                                      ->10
   18     8  E > > CATCH                                       last         'Exception'
   19     9    >   ECHO                                                     'NO'
   21    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.56 ms | 1393 KiB | 13 Q