3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $q = "QQQ"; } class B { public $p = "PPP"; } $a = "q"; $vari = "aa"; $oa = new A(); echo $oa->$$a;
based on 03ekF
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/8s1q4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $vari, !2 = $oa
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
   6     1        NOP                                                      
  10     2        ASSIGN                                                   !0, 'q'
  11     3        ASSIGN                                                   !1, 'aa'
  13     4        NEW                                              $7      :-4
         5        DO_FCALL                                      0          
         6        ASSIGN                                                   !2, $7
  16     7        FETCH_R                      local               $10     !0
         8        FETCH_OBJ_R                                      $11     !2, $10
         9        ECHO                                                     $11
        10      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0