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/lTtct
function name:  (null)
number of ops:  18
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        FETCH_OBJ_R                                      ~9      !2, !0
          9        FETCH_DIM_R                                      ~10     ~9, 0
         10        NOP                                                      
         11        FAST_CONCAT                                      ~11     ~10, '%0A'
         12        ECHO                                                     ~11
    7    13        FETCH_OBJ_R                                      ~12     !2, !0
         14        FETCH_DIM_R                                      ~13     ~12, 0
         15        ECHO                                                     ~13
         16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.17 ms | 1393 KiB | 14 Q