3v4l.org

run code in 300+ PHP versions simultaneously
<?php function prende_array($input) {foreach ($imput as $i => $value) echo "$input[0] + $input[1] = ", $input[0]+$input[1]; } $imput = array("a", "2"); prend_array($imput); var_dump($imput[0]); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aTqOm
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_BY_NAME                                       'prend_array'
          2        SEND_VAR_EX                                              !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 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/aTqOm
function name:  prende_array
number of ops:  18
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, ->16
          2    > > FE_FETCH_R                                       ~5      $4, !2, ->16
          3    >   ASSIGN                                                   !3, ~5
    4     4        FETCH_DIM_R                                      ~7      !0, 0
          5        ROPE_INIT                                     4  ~10     ~7
          6        ROPE_ADD                                      1  ~10     ~10, '+%2B+'
          7        FETCH_DIM_R                                      ~8      !0, 1
          8        ROPE_ADD                                      2  ~10     ~10, ~8
          9        ROPE_END                                      3  ~9      ~10, '+%3D+'
         10        ECHO                                                     ~9
         11        FETCH_DIM_R                                      ~12     !0, 0
         12        FETCH_DIM_R                                      ~13     !0, 1
         13        ADD                                              ~14     ~12, ~13
         14        ECHO                                                     ~14
    3    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $4
    5    17      > RETURN                                                   null

End of function prende_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.65 ms | 1388 KiB | 15 Q