3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $bar = 1; public static function baz() { var_dump($this); } } $f = new Foo; var_dump($f::$bar); var_dump($f::baz());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/038Vd
function name:  (null)
number of ops:  15
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3        INIT_FCALL                                               'var_dump'
          4        FETCH_CLASS                                   0  $4      !0
          5        FETCH_STATIC_PROP_R          unknown             ~5      'bar'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        FETCH_CLASS                                   0  $7      !0
         10        INIT_STATIC_METHOD_CALL                                  $7, 'baz'
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function baz

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.15 ms | 1395 KiB | 15 Q