3v4l.org

run code in 300+ PHP versions simultaneously
<?php function recurcive(&$data) { array_slice($data, 0); $data[] = 'X'; if (end($data[0]) !== 'X') { recurcive($data[0]); } } $a[0] = &$a; recurcive($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q73bL
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_REF                                               $1, !0
   13     2        INIT_FCALL                                               'recurcive'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function recurcive:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/Q73bL
function name:  recurcive
number of ops:  19
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'array_slice'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        DO_ICALL                                                 
    6     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'X'
    7     7        INIT_FCALL                                               'end'
          8        FETCH_DIM_W                                      $3      !0, 0
          9        SEND_REF                                                 $3
         10        DO_ICALL                                         $4      
         11        IS_NOT_IDENTICAL                                         $4, 'X'
         12      > JMPZ                                                     ~5, ->18
    8    13    >   INIT_FCALL_BY_NAME                                       'recurcive'
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $6      !0, 0
         16        SEND_FUNC_ARG                                            $6
         17        DO_FCALL                                      0          
   10    18    > > RETURN                                                   null

End of function recurcive

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.33 ms | 1003 KiB | 16 Q