3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { var_dump('object construit par __construct'); } public function bla($a) {} } class Plouf extends Foo { public function bla($a, $b = null) {} } $a = new Foo(); $a->bla('', ''); $b = new Plouf(); $b->bla('', ''); var_dump(E_ALL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aUUjk
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        INIT_METHOD_CALL                                         !0, 'bla'
          4        SEND_VAL_EX                                              ''
          5        SEND_VAL_EX                                              ''
          6        DO_FCALL                                      0          
   18     7        NEW                                              $6      'Plouf'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   19    10        INIT_METHOD_CALL                                         !1, 'bla'
         11        SEND_VAL_EX                                              ''
         12        SEND_VAL_EX                                              ''
         13        DO_FCALL                                      0          
   22    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAL                                                 32767
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aUUjk
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'object+construit+par+__construct'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function __construct

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

End of function bla

End of class Foo.

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

End of function bla

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aUUjk
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'object+construit+par+__construct'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function __construct

End of class Plouf.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1400 KiB | 15 Q