3v4l.org

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

Class A:
Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sp4Mi
function name:  C
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        ISSET_ISEMPTY_THIS                               ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    5     4        FETCH_THIS                                       $2      
          5        INIT_METHOD_CALL                                         $2, 'F'
          6        DO_FCALL                                      0  $3      
          7      > RETURN                                                   $3
    6     8*     > RETURN                                                   null

End of function c

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

End of function f

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.01 ms | 1395 KiB | 15 Q