3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo sprintf('%s was called', __METHOD__); } public function Foo() { echo sprintf('%s was called', __METHOD__); } } class Bar extends Foo { public function __construct() { parent::Foo(); } } $foo = new Foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HoqEe
function name:  (null)
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HoqEe
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25s+was+called'
          2        SEND_VAL                                                 'Foo%3A%3A__construct'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    7     5      > RETURN                                                   null

End of function __construct

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HoqEe
function name:  Foo
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25s+was+called'
          2        SEND_VAL                                                 'Foo%3A%3AFoo'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
   11     5      > RETURN                                                   null

End of function foo

End of class Foo.

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

End of function __construct

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HoqEe
function name:  Foo
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25s+was+called'
          2        SEND_VAL                                                 'Foo%3A%3AFoo'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
   11     5      > RETURN                                                   null

End of function foo

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.16 ms | 1400 KiB | 15 Q