3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function process($request, Foo $next); } class Bar implements Foo { public function process($request) { func_get_args(); } } $b = new Bar(); $b->process('der');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLjah
function name:  (null)
number of ops:  8
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'bar'
   13     1        NEW                                              $1      'Bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   14     4        INIT_METHOD_CALL                                         !0, 'process'
          5        SEND_VAL_EX                                              'der'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function process

End of class Foo.

Class Bar:
Function process:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLjah
function name:  process
number of ops:  4
compiled vars:  !0 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        FUNC_GET_ARGS                                    ~1      
          2        FREE                                                     ~1
   10     3      > RETURN                                                   null

End of function process

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.55 ms | 1385 KiB | 13 Q