3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fn = function (...$args) { return array_sum($args); }; var_dump($fn(1, 2, 3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWbt5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $fn
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        ASSIGN                                                       !0, ~1
    7     2        INIT_FCALL                                                   'var_dump'
          3        INIT_DYNAMIC_CALL                                            !0
          4        SEND_VAL_EX                                                  1
          5        SEND_VAL_EX                                                  2
          6        SEND_VAL_EX                                                  3
          7        DO_FCALL                                          0  $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
         10      > 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/rWbt5
function name:  {closure:/in/rWbt5:3}
number of ops:  6
compiled vars:  !0 = $args
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                        !0      
    4     1        INIT_FCALL                                                   'array_sum'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $1      
          4      > RETURN                                                       $1
    5     5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.79 ms | 1443 KiB | 15 Q