3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar($a, array $b); } interface Bar extends Foo { public function bar($a, array $b, $c = NULL); } class MyFoo implements Foo { public function bar($a, array $b, $c = NULL) { } } class MyBar implements Bar { public function bar($a, array $b, $c = NULL) { } } class MyExtendedBar implements Bar { public function bar($a, array $b, $c = NULL, $d = '') { } } $foo = new MyExtendedBar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqk5Z
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'bar'
   11     1        DECLARE_CLASS                                            'myfoo'
   17     2        DECLARE_CLASS                                            'mybar'
   23     3        DECLARE_CLASS                                            'myextendedbar'
   29     4        NEW                                              $1      'MyExtendedBar'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
          7      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqk5Z
function name:  bar
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 bar

End of class Foo.

Class Bar:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uqk5Z
function name:  bar
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 bar

End of class Bar.

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

End of function bar

End of class MyFoo.

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

End of function bar

End of class MyBar.

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

End of function bar

End of class MyExtendedBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.65 ms | 1399 KiB | 13 Q