3v4l.org

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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.65 ms | 1392 KiB | 13 Q