3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass(); $y = '0'; $z = '$'; $x->$y->$z = 'ALPHA'; print $x->$y->$z;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1XL53
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, '0'
    4     4        ASSIGN                                                   !2, '%24'
    5     5        FETCH_OBJ_W                                      $8      !0, !1
          6        ASSIGN_OBJ                                               $8, !2
          7        OP_DATA                                                  'ALPHA'
    6     8        FETCH_OBJ_R                                      ~10     !0, !1
          9        FETCH_OBJ_R                                      ~11     ~10, !2
         10        ECHO                                                     ~11
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.98 ms | 1392 KiB | 13 Q