3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->{'@ad'} = 5; print_r($a); $var = '@ad'; echo $a->$var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ZkhT
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, '%40ad'
          4        OP_DATA                                                  5
    6     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        ASSIGN                                                   !1, '%40ad'
    8     9        FETCH_OBJ_R                                      ~8      !0, !1
         10        ECHO                                                     ~8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.89 ms | 1003 KiB | 14 Q