3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $a=7; } function f($obj) { var_dump($obj); echo $obj::$a; } $a=new a; @f(A);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h3AjC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        BEGIN_SILENCE                                    ~4      
          4        INIT_FCALL                                               'f'
          5        FETCH_CONSTANT                                   ~5      'A'
          6        SEND_VAL                                                 ~5
          7        DO_FCALL                                      0          
          8        END_SILENCE                                              ~4
          9      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h3AjC
function name:  f
number of ops:  8
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   13     4        FETCH_CLASS                                   0  $2      !0
          5        FETCH_STATIC_PROP_R          global lock         ~3      'a'
          6        ECHO                                                     ~3
   14     7      > RETURN                                                   null

End of function f

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.05 ms | 1397 KiB | 16 Q