3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3INnA
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_export'
          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:
160.41 ms | 1388 KiB | 16 Q