3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public static function foo() { $this->assert(); } public function assert() {} } X::foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9ENa
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'X', 'foo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class X:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u9ENa
function name:  foo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $0      
          1        INIT_METHOD_CALL                                         $0, 'assert'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function foo

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

End of function assert

End of class X.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.22 ms | 1006 KiB | 13 Q