3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct() { $this->foo(); $this->bar(); } private function foo() { self::something(); } private static function bar() { self::something(); } public function __call($name, $arguments) { echo __FUNCTION__, PHP_EOL; } public static function __callStatic($name, $arguments) { echo __FUNCTION__, PHP_EOL; } } new A();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ca0ER
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   25     0  E >   NEW                                                  $0      'A'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
          3      > RETURN                                                       1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ca0ER
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_METHOD_CALL                                             'foo'
          1        DO_FCALL                                          0          
    5     2        INIT_METHOD_CALL                                             'bar'
          3        DO_FCALL                                          0          
    6     4      > 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/ca0ER
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                      'something'
          1        DO_FCALL                                          0          
   10     2      > RETURN                                                       null

End of function foo

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

End of function bar

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

End of function __call

Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ca0ER
function name:  __callStatic
number of ops:  5
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   21     2        ECHO                                                         '__callStatic'
          3        ECHO                                                         '%0A'
   22     4      > RETURN                                                       null

End of function __callstatic

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.24 ms | 2680 KiB | 13 Q