3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function m() { echo 'I am M!'; } } $m = 'm'; $t = new T; $t->{$m}();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kacGu
function name:  (null)
number of ops:  7
compiled vars:  !0 = $m, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'm'
   11     1        NEW                                              $3      'T'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   12     4        INIT_METHOD_CALL                                         !1, !0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Test:
Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kacGu
function name:  m
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'I+am+M%21'
    7     1      > RETURN                                                   null

End of function m

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.85 ms | 1393 KiB | 13 Q