3v4l.org

run code in 300+ PHP versions simultaneously
<?php $menu = array(); $data = simplexml_load_string('<foo />'); $menu[] = $data; $datas = simplexml_load_string('<foo><bar>1</bar><bar>2</bar></foo>'); $i=0; $menu = []; foreach($datas as $data){ $menu[$i] = $data; $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/0HIKE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $menu, !1 = $data, !2 = $datas, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAL                                                 '%3Cfoo+%2F%3E'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  !1
    9     7        INIT_FCALL                                               'simplexml_load_string'
          8        SEND_VAL                                                 '%3Cfoo%3E%3Cbar%3E1%3C%2Fbar%3E%3Cbar%3E2%3C%2Fbar%3E%3C%2Ffoo%3E'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
   11    11        ASSIGN                                                   !3, 0
         12        ASSIGN                                                   !0, <array>
   12    13      > FE_RESET_R                                       $12     !2, ->19
         14    > > FE_FETCH_R                                               $12, !1, ->19
   13    15    >   ASSIGN_DIM                                               !0, !3
         16        OP_DATA                                                  !1
   14    17        PRE_INC                                                  !3
   12    18      > JMP                                                      ->14
         19    >   FE_FREE                                                  $12
   15    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.12 ms | 1395 KiB | 15 Q