3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface A { public function search($a, $b); } class B implements A { public function search($a, $b, $c=null) {} } new B;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7OfIR
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'b'
   11     1        NEW                                                  $0      'B'
          2        DO_FCALL                                          0          
          3        FREE                                                         $0
          4      > RETURN                                                       1

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

End of function search

End of class A.

Class B:
Function search:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7OfIR
function name:  search
number of ops:  4
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_INIT                                            !2      null
          3      > RETURN                                                       null

End of function search

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.54 ms | 2707 KiB | 13 Q