3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T {} class T1 extends T { protected function a () { } } class T2 extends T { public function __construct() { $t = new T1; $t->a(); } } $t = new T2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0qHN
function name:  (null)
number of ops:  4
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'T2'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class T: [no user functions]
Class T1:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0qHN
function name:  a
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function a

End of class T1.

Class T2:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0qHN
function name:  __construct
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'T1'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'a'
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   null

End of function __construct

End of class T2.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.98 ms | 1394 KiB | 13 Q