3v4l.org

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

Function getdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MFjQI
function name:  getData
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_DIM_W                                          $1      !0, 0
          1        ASSIGN_REF                                                   $1, !0
    7     2      > RETURN                                                       !0
    8     3*     > RETURN                                                       null

End of function getdata

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

End of function recurcive

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.95 ms | 481 KiB | 10 Q