3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Obj { public $p = 'Beauty beyond comare ...'; static function showP(){ echo $this->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/fXHFI
function name:  (null)
number of ops:  6
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_DIM_R                                      ~2      !0, 0
          3        INIT_STATIC_METHOD_CALL                                  'Obj', ~2
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Obj:
Function showp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fXHFI
function name:  showP
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_THIS                                       $0      
          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:
164.64 ms | 1393 KiB | 13 Q