3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $x = 'AAA'; public $a = 'BB'; public function AA($v) { echo $this->$v; } } $aa = new A(); $aa->AA('x');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9jquS
function name:  (null)
number of ops:  7
compiled vars:  !0 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_METHOD_CALL                                         !0, 'AA'
          4        SEND_VAL_EX                                              'x'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class A:
Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9jquS
function name:  AA
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        FETCH_OBJ_R                                      ~1      !0
          2        ECHO                                                     ~1
    9     3      > RETURN                                                   null

End of function aa

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1393 KiB | 13 Q