3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Concrete { public function foo(); } class Bar { } abstract class AbsConcrete implements Concrete { abstract protected function foo(); } class Customer extends AbsConcrete { public function init() { echo "init\n"; } public function foo( Bar $me = null, Bar $lala = null ) { echo "foo\n"; } } $customer = new Customer; $customer->init(); $customer->foo( new Bar, new Bar );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r97ka
function name:  (null)
number of ops:  16
compiled vars:  !0 = $customer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'absconcrete'
   13     1        DECLARE_CLASS                                            'customer', 'absconcrete'
   23     2        NEW                                              $1      'Customer'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   24     5        INIT_METHOD_CALL                                         !0, 'init'
          6        DO_FCALL                                      0          
   25     7        INIT_METHOD_CALL                                         !0, 'foo'
          8        NEW                                              $5      'Bar'
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $5
         11        NEW                                              $7      'Bar'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $7
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

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

End of function foo

End of class Concrete.

Class Bar: [no user functions]
Class AbsConcrete:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r97ka
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function foo

End of class AbsConcrete.

Class Customer:
Function init:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r97ka
function name:  init
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'init%0A'
   16     1      > RETURN                                                   null

End of function init

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r97ka
function name:  foo
number of ops:  4
compiled vars:  !0 = $me, !1 = $lala
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
   19     2        ECHO                                                     'foo%0A'
   20     3      > RETURN                                                   null

End of function foo

End of class Customer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.17 ms | 1399 KiB | 13 Q