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 display(array $array, $position){ foreach ($array as $subArray) { $anotherArray[] = $subArray[$position]; } } print_r(display($array,0)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AJNPO
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>
   15     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'display'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   17     8      > RETURN                                                   1

Function display:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/AJNPO
function name:  display
number of ops:  10
compiled vars:  !0 = $array, !1 = $position, !2 = $subArray, !3 = $anotherArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2      > FE_RESET_R                                       $4      !0, ->8
          3    > > FE_FETCH_R                                               $4, !2, ->8
   11     4    >   FETCH_DIM_R                                      ~6      !2, !1
          5        ASSIGN_DIM                                               !3
          6        OP_DATA                                                  ~6
   10     7      > JMP                                                      ->3
          8    >   FE_FREE                                                  $4
   13     9      > RETURN                                                   null

End of function display

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.33 ms | 1397 KiB | 16 Q