3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $value = 'hello world'; public $test = 'vse norm'; } $foo = new Foo; $test = 'value'; echo $foo->test . "\n"; echo $foo->$test . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ppD7S
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN                                                   !1, 'value'
   11     4        FETCH_OBJ_R                                      ~6      !0, 'test'
          5        CONCAT                                           ~7      ~6, '%0A'
          6        ECHO                                                     ~7
   12     7        FETCH_OBJ_R                                      ~8      !0, !1
          8        CONCAT                                           ~9      ~8, '%0A'
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.45 ms | 993 KiB | 13 Q