3v4l.org

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

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1393 KiB | 13 Q