3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const foo = 'bar'; public $foo = 'foobar'; const bar = 'foo'; static $bar = 'foobar'; } var_dump(foo::$bar); // static property var_dump(foo::bar); // class constant $bar = new Foo(); var_dump($bar->foo); // object property var_dump(bar::foo); // class constant
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XlG4g
function name:  (null)
number of ops:  19
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~1      'bar'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   12     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 'foo'
          6        DO_ICALL                                                 
   14     7        NEW                                              $4      'Foo'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $4
   15    10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~7      !0, 'foo'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   16    14        INIT_FCALL                                               'var_dump'
         15        FETCH_CLASS_CONSTANT                             ~9      'bar', 'foo'
         16        SEND_VAL                                                 ~9
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.36 ms | 1394 KiB | 15 Q