3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <sizes> <size label="Square" width="75" height="75" /> <size label="Thumbnail" width="100" height="62" /> <size label="Small" width="112" height="69">small</size> <size label="Large" width="112" height="69">large</size> </sizes> XML; $xml = simplexml_load_string($string); $result = $xml->xpath("//size"); // print the first (and only) member of the array var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ArRBX
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $xml, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Csizes%3E%0A++++%3Csize+label%3D%22Square%22+width%3D%2275%22+height%3D%2275%22+%2F%3E%0A++++%3Csize+label%3D%22Thumbnail%22+width%3D%22100%22+height%3D%2262%22+%2F%3E%0A++++%3Csize+label%3D%22Small%22+width%3D%22112%22+height%3D%2269%22%3Esmall%3C%2Fsize%3E%0A++++%3Csize+label%3D%22Large%22+width%3D%22112%22+height%3D%2269%22%3Elarge%3C%2Fsize%3E%0A%3C%2Fsizes%3E'
   11     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   12     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2Fsize'
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !2, $6
   15     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.07 ms | 1394 KiB | 17 Q