3v4l.org

run code in 300+ PHP versions simultaneously
<?php $z[0] = 'wonderous'; $b = 'a thing of beauty is '; $o = new stdClass; $o->wonderous = $b; echo "$o->$z[0]\n"; echo $o->$z[0],"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HKuA3
function name:  (null)
number of ops:  19
compiled vars:  !0 = $z, !1 = $b, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'wonderous'
    3     2        ASSIGN                                                   !1, 'a+thing+of+beauty+is+'
    4     3        NEW                                              $5      'stdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
    5     6        ASSIGN_OBJ                                               !2, 'wonderous'
          7        OP_DATA                                                  !1
    6     8        ROPE_INIT                                     4  ~11     !2
          9        ROPE_ADD                                      1  ~11     ~11, '-%3E'
         10        FETCH_DIM_R                                      ~9      !0, 0
         11        ROPE_ADD                                      2  ~11     ~11, ~9
         12        ROPE_END                                      3  ~10     ~11, '%0A'
         13        ECHO                                                     ~10
    7    14        FETCH_OBJ_R                                      ~13     !2, !0
         15        FETCH_DIM_R                                      ~14     ~13, 0
         16        ECHO                                                     ~14
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.89 ms | 1397 KiB | 13 Q