3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function start() { self::bar(); static::bar(); Foo::bar(); } public function __call($n, $a) { echo 'instance'; } public static function __callStatic($n, $a) { echo 'static'; } } $foo = new Foo(); $foo->start();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHv0X
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   24     3        INIT_METHOD_CALL                                         !0, 'start'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function start:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHv0X
function name:  start
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_STATIC_METHOD_CALL                                  'bar'
          1        DO_FCALL                                      0          
    8     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    9     4        INIT_STATIC_METHOD_CALL                                  'Foo', 'bar'
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   null

End of function start

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kHv0X
function name:  __call
number of ops:  4
compiled vars:  !0 = $n, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   14     2        ECHO                                                     'instance'
   15     3      > 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/kHv0X
function name:  __callStatic
number of ops:  4
compiled vars:  !0 = $n, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   19     2        ECHO                                                     'static'
   20     3      > RETURN                                                   null

End of function __callstatic

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.37 ms | 1386 KiB | 13 Q