3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait t { private $tt = 'trait'; private function go() { return $this->tt; } } class at { use t; private $tt = 'class'; public function aa() { return $this->go(); } } $r = new at; var_dump($r->aa());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCInT
function name:  (null)
number of ops:  10
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   DECLARE_CLASS                                            'at'
   30     1        NEW                                              $1      'at'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   31     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'aa'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class t:
Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCInT
function name:  go
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'tt'
          1      > RETURN                                                   ~0
   12     2*     > RETURN                                                   null

End of function go

End of class t.

Class at:
Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aCInT
function name:  aa
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_METHOD_CALL                                         'go'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   27     3*     > RETURN                                                   null

End of function aa

End of class at.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 1395 KiB | 15 Q