3v4l.org

run code in 500+ PHP versions simultaneously
<?php ${0} = 'value'; $o = (object) compact('0'); var_dump($o->{0});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CnQhfT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $0, !1 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'value'
    4     1        INIT_FCALL                                                   'compact'
          2        SEND_VAL                                                     '0'
          3        DO_ICALL                                             $3      
          4        CAST                                              8  ~4      $3
          5        ASSIGN                                                       !1, ~4
    5     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_OBJ_R                                          ~6      !1, '0'
          8        SEND_VAL                                                     ~6
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.93 ms | 2049 KiB | 15 Q