3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public static $f; } T::$f = function() { echo "static member\n"; }; $f = function() { echo "local variable\n"; }; $f(); $sf = T::$f; $sf();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpsFf
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f, !1 = $sf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          1        ASSIGN_STATIC_PROP                                       'f', 'T'
          2        OP_DATA                                                  ~3
    8     3        DECLARE_LAMBDA_FUNCTION                          ~4      [1]
          4        ASSIGN                                                   !0, ~4
   10     5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
   11     7        FETCH_STATIC_PROP_R          unknown             ~7      'f'
          8        ASSIGN                                                   !1, ~7
   12     9        INIT_DYNAMIC_CALL                                        !1
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpsFf
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'static+member%0A'
          1      > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpsFf
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'local+variable%0A'
          1      > RETURN                                                   null

End of Dynamic Function 1

Class T: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
250.04 ms | 1064 KiB | 13 Q