3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test11 { public function test() { } } class Test12 extends Test11 { public function test($a = 1) { } } interface Test21 { public function test(); } class Test22 implements Test21 { public function test($a = 1) { } } interface Test31 { public function test(); } trait Test31Trait { public function test($a = 1) { } } class Test32 implements Test31 { use Test31Trait; } echo "WORKS!";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   DECLARE_CLASS                                            'test22'
   41     1        DECLARE_CLASS                                            'test32'
   46     2        ECHO                                                     'WORKS%21'
          3      > RETURN                                                   1

Class Test11:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function test

End of class Test11.

Class Test12:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV_INIT                                        !0      1
   14     1      > RETURN                                                   null

End of function test

End of class Test12.

Class Test21:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   null

End of function test

End of class Test21.

Class Test22:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV_INIT                                        !0      1
   26     1      > RETURN                                                   null

End of function test

End of class Test22.

Class Test31:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E > > RETURN                                                   null

End of function test

End of class Test31.

Class Test31Trait:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/67l9P
function name:  test
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV_INIT                                        !0      1
   38     1      > RETURN                                                   null

End of function test

End of class Test31Trait.

Class Test32: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.71 ms | 1395 KiB | 13 Q