3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(&$a); function fill (&$a, $i = 3) { if (!$i--) return; foreach ($a as &$tmp) { $tmp = array($tmp ,&$a); //var_dump($a); fill($tmp); } } fill($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c6NjS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~1      !0
          1        ASSIGN                                                   !0, ~1
   11     2        INIT_FCALL                                               'fill'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function fill:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/c6NjS
function name:  fill
number of ops:  17
compiled vars:  !0 = $a, !1 = $i, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      3
    4     2        POST_DEC                                         ~3      !1
          3        BOOL_NOT                                         ~4      ~3
          4      > JMPZ                                                     ~4, ->6
          5    > > RETURN                                                   null
    5     6    > > FE_RESET_RW                                      $5      !0, ->15
          7    > > FE_FETCH_RW                                              $5, !2, ->15
    6     8    >   INIT_ARRAY                                       ~6      !2
          9        ADD_ARRAY_ELEMENT                                ~6      !0
         10        ASSIGN                                                   !2, ~6
    8    11        INIT_FCALL_BY_NAME                                       'fill'
         12        SEND_VAR_EX                                              !2
         13        DO_FCALL                                      0          
    5    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $5
   10    16      > RETURN                                                   null

End of function fill

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.6 ms | 944 KiB | 15 Q