3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Concrete { public function init() { } } class Bar { } abstract class AbsConcrete { 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/68QJU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $customer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'Customer'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'init'
          4        DO_FCALL                                      0          
   26     5        INIT_METHOD_CALL                                         !0, 'foo'
          6        NEW                                              $5      'Bar'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        NEW                                              $7      'Bar'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $7
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

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

End of function init

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/68QJU
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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/68QJU
function name:  init
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'init%0A'
   17     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/68QJU
function name:  foo
number of ops:  4
compiled vars:  !0 = $me, !1 = $lala
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
   20     2        ECHO                                                     'foo%0A'
   21     3      > RETURN                                                   null

End of function foo

End of class Customer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.24 ms | 1399 KiB | 13 Q