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/F1JP4
function name:  (null)
number of ops:  12
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  ~10     ~6
          6        ROPE_ADD                                      1  ~10     ~10, '%0A'
    9     7        FETCH_OBJ_R                                      ~7      !0, 'bar'
          8        FETCH_R                      local               ~8      ~7
          9        ROPE_END                                      2  ~9      ~10, ~8
         10        ECHO                                                     ~9
   11    11      > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.2 ms | 1384 KiB | 13 Q