3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { echo 'baz'; } } class Dynamic { public $var = 'Foo'; } $d = new Dynamic(); $d->var::bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dJc5O
function name:  (null)
number of ops:  8
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Dynamic'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        FETCH_OBJ_R                                      ~4      !0, 'var'
          4        FETCH_CLASS                                   0  $5      ~4
          5        INIT_STATIC_METHOD_CALL                                  $5, 'bar'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dJc5O
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'baz'
          1      > RETURN                                                   null

End of function bar

End of class Foo.

Class Dynamic: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1384 KiB | 13 Q