3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array("a"=>"aaaa")); var_dump($a["a"]); foreach ($a as &$row) { test($row["a"]); } function test($a) { echo $a; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 126) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
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/cYfMR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        FETCH_DIM_R                                      ~3      !0, 'a'
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                                 
    4     5      > FE_RESET_RW                                      $5      !0, ->13
          6    > > FE_FETCH_RW                                              $5, !1, ->13
    5     7    >   INIT_FCALL_BY_NAME                                       'test'
          8        CHECK_FUNC_ARG                                           
          9        FETCH_DIM_FUNC_ARG                               $6      !1, 'a'
         10        SEND_FUNC_ARG                                            $6
         11        DO_FCALL                                      0          
    4    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $5
   10    14      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cYfMR
function name:  test
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ECHO                                                     !0
   10     2      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.7 ms | 1395 KiB | 15 Q