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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.23 ms | 1397 KiB | 13 Q