3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function storeContents($directory, array $contents, $recursive); } abstract class A implements I { public function storeContents($directory, array $contents, $recursive = false) { echo 'a'; } } class B extends A { public function storeContents($directory, array $contents, $recursive) { echo 'b'; } } $b = new B;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VDT0P
function name:  (null)
number of ops:  6
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'a'
   13     1        DECLARE_CLASS                                            'b', 'a'
   19     2        NEW                                              $1      'B'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   20     5      > RETURN                                                   1

Class I:
Function storecontents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VDT0P
function name:  storeContents
number of ops:  4
compiled vars:  !0 = $directory, !1 = $contents, !2 = $recursive
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3      > RETURN                                                   null

End of function storecontents

End of class I.

Class A:
Function storecontents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VDT0P
function name:  storeContents
number of ops:  5
compiled vars:  !0 = $directory, !1 = $contents, !2 = $recursive
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      <false>
    9     3        ECHO                                                     'a'
   10     4      > RETURN                                                   null

End of function storecontents

End of class A.

Class B:
Function storecontents:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VDT0P
function name:  storeContents
number of ops:  5
compiled vars:  !0 = $directory, !1 = $contents, !2 = $recursive
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   15     3        ECHO                                                     'b'
   16     4      > RETURN                                                   null

End of function storecontents

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.31 ms | 940 KiB | 14 Q