3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <book> <section> <p>Example text</p> <p>Another text</p> <img l:href="imagehref"> <p>Textual content</p> </section> </book>'; $xml = simplexml_load_string($xml); foreach($node->xpath('/section') as $section) { echo 'Got section', "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/sbKjF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $node, !2 = $section
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cbook%3E%0A++++%3Csection%3E%0A++++++++%3Cp%3EExample+text%3C%2Fp%3E%0A++++++++%3Cp%3EAnother+text%3C%2Fp%3E%0A++++++++%3Cimg+l%3Ahref%3D%22imagehref%22%3E%0A++++++++%3Cp%3ETextual+content%3C%2Fp%3E%0A++++%3C%2Fsection%3E%0A%3C%2Fbook%3E'
   13     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
   14     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2Fsection'
          7        DO_FCALL                                      0  $6      
          8      > FE_RESET_R                                       $7      $6, ->13
          9    > > FE_FETCH_R                                               $7, !2, ->13
   15    10    >   ECHO                                                     'Got+section'
         11        ECHO                                                     '%0A'
   14    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $7
   16    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.07 ms | 1395 KiB | 15 Q