3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { var $bar = 'I am bar.'; } $foo = new foo(); $bar = 'bar'; $baz = array('foo', 'bar', 'baz', 'quux'); echo "{$foo->$bar}\n"; echo "{$foo->$baz[1]}\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m88aO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        ASSIGN                                                   !1, 'bar'
    9     4        ASSIGN                                                   !2, <array>
   10     5        FETCH_OBJ_R                                      ~8      !0, !1
          6        NOP                                                      
          7        FAST_CONCAT                                      ~9      ~8, '%0A'
          8        ECHO                                                     ~9
   11     9        FETCH_OBJ_R                                      ~10     !0, !2
         10        FETCH_DIM_R                                      ~11     ~10, 1
         11        NOP                                                      
         12        FAST_CONCAT                                      ~12     ~11, '%0A'
         13        ECHO                                                     ~12
         14      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1393 KiB | 13 Q