3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fn = fn($x) => fn($y) => $x + $y;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBh0m
function name:  (null)
number of ops:  4
compiled vars:  !0 = $fn, !1 = $y
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          1        BIND_LEXICAL                                                 ~2, !1
          2        ASSIGN                                                       !0, ~2
    4     3      > 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/kBh0m
function name:  {closure:/in/kBh0m:3}
number of ops:  6
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          3        BIND_LEXICAL                                                 ~2, !0
          4      > RETURN                                                       ~2
          5*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBh0m
function name:  {closure:{closure:/in/kBh0m:3}:3}
number of ops:  5
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        ADD                                                  ~2      !1, !0
          3      > RETURN                                                       ~2
          4*     > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
148.98 ms | 3390 KiB | 13 Q