3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('james','Brandun','test'), array('james0','Brandun0','test0'), array('james1','Brandun1','test1') ); function displayLocation( $array, $position){ foreach ($array as $subArray) { for ($i=0; $i < count($subArray); $i++) { $anotherArray = $subArray[$i]; } } return $anotherArray; } print_r(displaylocation($array,0)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jC02H
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   20     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'displaylocation'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   22     8      > RETURN                                                   1

Function displaylocation:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/jC02H
function name:  displayLocation
number of ops:  16
compiled vars:  !0 = $array, !1 = $position, !2 = $subArray, !3 = $i, !4 = $anotherArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2      > FE_RESET_R                                       $5      !0, ->13
          3    > > FE_FETCH_R                                               $5, !2, ->13
   12     4    >   ASSIGN                                                   !3, 0
          5      > JMP                                                      ->9
   14     6    >   FETCH_DIM_R                                      ~7      !2, !3
          7        ASSIGN                                                   !4, ~7
   12     8        PRE_INC                                                  !3
          9    >   COUNT                                            ~10     !2
         10        IS_SMALLER                                               !3, ~10
         11      > JMPNZ                                                    ~11, ->6
   11    12    > > JMP                                                      ->3
         13    >   FE_FREE                                                  $5
   17    14      > RETURN                                                   !4
   18    15*     > RETURN                                                   null

End of function displaylocation

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.31 ms | 1390 KiB | 16 Q