3v4l.org

run code in 300+ PHP versions simultaneously
<?php class tester { public $hello = 'lolphp'; public function doIt($id){ echo $$id; } } $ident = "$this->hello"; $t = new tester; $t->doIt($ident);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7sSqo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ident, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_THIS                                       $2      
          1        FETCH_OBJ_R                                      ~3      $2, 'hello'
          2        CAST                                          6  ~4      ~3
          3        ASSIGN                                                   !0, ~4
   11     4        NEW                                              $6      'tester'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
   12     7        INIT_METHOD_CALL                                         !1, 'doIt'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class tester:
Function doit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7sSqo
function name:  doIt
number of ops:  4
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        FETCH_R                      local               ~1      !0
          2        ECHO                                                     ~1
    7     3      > RETURN                                                   null

End of function doit

End of class tester.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.77 ms | 1393 KiB | 13 Q