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, $i); } } fill($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F90Ot
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 = 16
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/F90Ot
function name:  fill
number of ops:  18
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, ->16
          7    > > FE_FETCH_RW                                              $5, !2, ->16
    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        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
    5    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $5
   10    17      > RETURN                                                   null

End of function fill

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.64 ms | 1390 KiB | 14 Q