3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { private int $foo; function __get($name) { return $name; } }; var_dump($a->foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8CqF
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   11     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~5      !0, 'foo'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class class@anonymous:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8CqF
function name:  __get
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function __get

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.66 ms | 1444 KiB | 14 Q