3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://myknowledge.org.uk/xml'; $xml = new SimpleXMLElement(file_get_contents($url)); foreach ($xml->item as $item) { $title = $item->title; } echo $title; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/DpKYK
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $xml, !2 = $item, !3 = $title
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmyknowledge.org.uk%2Fxml'
    3     1        NEW                                              $5      'SimpleXMLElement'
          2        INIT_FCALL                                               'file_get_contents'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        SEND_VAR_NO_REF_EX                                       $6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    4     8        FETCH_OBJ_R                                      ~9      !1, 'item'
          9      > FE_RESET_R                                       $10     ~9, ->14
         10    > > FE_FETCH_R                                               $10, !2, ->14
    5    11    >   FETCH_OBJ_R                                      ~11     !2, 'title'
         12        ASSIGN                                                   !3, ~11
    4    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $10
    8    15        ECHO                                                     !3
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 1395 KiB | 15 Q