3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public static function z(){ var_dump(isset($this), get_called_class(), __CLASS__, __METHOD__, debug_backtrace(false)); echo 'x->z();'; } } $x = new x; $x->z(); x::z();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/omXtQ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'z'
          4        DO_FCALL                                      0          
   13     5        INIT_STATIC_METHOD_CALL                                  'x', 'z'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class x:
Function z:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/omXtQ
function name:  z
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        ISSET_ISEMPTY_THIS                               ~0      
          2        SEND_VAL                                                 ~0
          3        GET_CALLED_CLASS                                 ~1      
          4        SEND_VAL                                                 ~1
          5        SEND_VAL                                                 'x'
          6        SEND_VAL                                                 'x%3A%3Az'
          7        INIT_FCALL                                               'debug_backtrace'
          8        SEND_VAL                                                 <false>
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    7    12        ECHO                                                     'x-%3Ez%28%29%3B'
    8    13      > RETURN                                                   null

End of function z

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.51 ms | 1399 KiB | 17 Q