3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Obj { static public $p = 'Beauty beyond comare ...'; static function showP(){ echo self->p; } } $z[0] = "showP"; Obj::$z[0]();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nU5jY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'showP'
   12     2        FETCH_STATIC_PROP_R          unknown             ~2      'z'
          3        FETCH_DIM_R                                      ~3      ~2, 0
          4        INIT_DYNAMIC_CALL                                        ~3
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Obj:
Function showp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nU5jY
function name:  showP
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_CONSTANT                                   ~0      'self'
          1        FETCH_OBJ_R                                      ~1      ~0, 'p'
          2        ECHO                                                     ~1
    8     3      > RETURN                                                   null

End of function showp

End of class Obj.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1393 KiB | 13 Q