3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrs = array( array('id'=>1,'name'=>'root','pid'=>0), array('id'=>2,'name'=>'root1','pid'=>0), array('id'=>3,'name'=>'level1','pid'=>1), array('id'=>4,'name'=>'level11','pid'=>1), array('id'=>5,'name'=>'leve21','pid'=>2), array('id'=>6,'name'=>'level2','pid'=>2) ); class digui{ function index( ){ $this->test($arr); } private function doarr($arrs){ print_r($arrs); } /* private function test($n){ if($n!=0) { echo $n; $this->test($n-1); return $n; } }*/ } $d = new digui; // $d->doarr($arrs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/teqEm
function name:  (null)
number of ops:  5
compiled vars:  !0 = $arrs, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   33     1        NEW                                              $3      'digui'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   34     4      > RETURN                                                   1

Class digui:
Function index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/teqEm
function name:  index
number of ops:  4
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_METHOD_CALL                                         'test'
          1        SEND_VAR_EX                                              !0
          2        DO_FCALL                                      0          
   16     3      > RETURN                                                   null

End of function index

Function doarr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/teqEm
function name:  doarr
number of ops:  5
compiled vars:  !0 = $arrs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   19     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   21     4      > RETURN                                                   null

End of function doarr

End of class digui.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.39 ms | 1395 KiB | 15 Q