3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stack = array("orange", "banana", "apple", "raspberry"); $fruit = array_shift($stack); print_r($stack); $_room = array(); for($i = 2; $i < 8; $i++) { $_room[] = array_shift($stack); } print_r($_room); unset($_room[2]); print_r($_room); foreach($_room as $value){ print "value=".$value."\n"; }?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/WQdhf
function name:  (null)
number of ops:  34
compiled vars:  !0 = $stack, !1 = $fruit, !2 = $_room, !3 = $i, !4 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
          1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
          5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8        ASSIGN                                                   !2, <array>
          9        ASSIGN                                                   !3, 2
         10      > JMP                                                      ->17
         11    >   INIT_FCALL                                               'array_shift'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $12     
         14        ASSIGN_DIM                                               !2
         15        OP_DATA                                                  $12
         16        PRE_INC                                                  !3
         17    >   IS_SMALLER                                               !3, 8
         18      > JMPNZ                                                    ~14, ->11
         19    >   INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22        UNSET_DIM                                                !2, 2
         23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
         26      > FE_RESET_R                                       $17     !2, ->32
         27    > > FE_FETCH_R                                               $17, !4, ->32
         28    >   CONCAT                                           ~18     'value%3D', !4
         29        CONCAT                                           ~19     ~18, '%0A'
         30        ECHO                                                     ~19
         31      > JMP                                                      ->27
         32    >   FE_FREE                                                  $17
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.9 ms | 1396 KiB | 17 Q