3v4l.org

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

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M3TIN
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'data'
          1        CONCAT                                           ~1      '-%3E+', ~0
          2        CONCAT                                           ~2      ~1, '+%3C-'
          3        ECHO                                                     ~2
    5     4      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.21 ms | 1384 KiB | 13 Q