3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public static function z(){ var_dump(isset($this)); 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/X26vT
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/X26vT
function name:  z
number of ops:  6
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        DO_ICALL                                                 
    7     4        ECHO                                                     'x-%3Ez%28%29%3B'
    8     5      > RETURN                                                   null

End of function z

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1386 KiB | 15 Q