3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[MyAttribute] class x {} #[MyAttribute] enum e {} #[MyAttribute] interface i {} #[MyAttribute] trait t {} // =================== #[MyFunctionAttribute] function foo() {} $c = #[MyFunctionAttribute] function () {}; $f = #[MyFunctionAttribute] fn () => 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pZSn7
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c, !1 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'e'
   20     1        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          2        ASSIGN                                                       !0, ~2
   22     3        DECLARE_LAMBDA_FUNCTION                              ~4      [1]
          4        ASSIGN                                                       !1, ~4
   23     5      > 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/pZSn7
function name:  {closure:/in/pZSn7:20}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E > > 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/pZSn7
function name:  {closure:/in/pZSn7:22}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E > > RETURN                                                       1
          1*     > RETURN                                                       null

End of Dynamic Function 1

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

End of function foo

Class x: [no user functions]
Class e: [no user functions]
Class i: [no user functions]
Class t: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.57 ms | 1459 KiB | 13 Q