3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.84 ms | 1392 KiB | 13 Q