3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.59 ms | 1778 KiB | 16 Q