3v4l.org

run code in 300+ PHP versions simultaneously
<?php function prende_array($input) {foreach ($imput as $i => $value){ echo $input[$i];} } $imput = array("a"); prende_array($imput); var_dump($imput[0]); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SOU2e
function name:  (null)
number of ops:  9
compiled vars:  !0 = $imput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'prende_array'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
    9     4        INIT_FCALL                                               'var_dump'
          5        FETCH_DIM_R                                      ~3      !0, 0
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
   11     8      > RETURN                                                   1

Function prende_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/SOU2e
function name:  prende_array
number of ops:  9
compiled vars:  !0 = $input, !1 = $imput, !2 = $value, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1      > FE_RESET_R                                       $4      !1, ->7
          2    > > FE_FETCH_R                                       ~5      $4, !2, ->7
          3    >   ASSIGN                                                   !3, ~5
    4     4        FETCH_DIM_R                                      ~7      !0, !3
          5        ECHO                                                     ~7
    3     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $4
    5     8      > RETURN                                                   null

End of function prende_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.4 ms | 1398 KiB | 16 Q