3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array_map(function($a, $b) { return 1; }, range(0, 10), array_fill(0, 1, 2), array_fill(0, 100, 3), // not even used ); print count($array); // 100 ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8VDEa
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'array_map'
          1        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          2        SEND_VAL                                                     ~1
    4     3        INIT_FCALL                                                   'range'
          4        SEND_VAL                                                     0
          5        SEND_VAL                                                     10
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
    5     8        INIT_FCALL                                                   'array_fill'
          9        SEND_VAL                                                     0
         10        SEND_VAL                                                     1
         11        SEND_VAL                                                     2
         12        DO_ICALL                                             $3      
         13        SEND_VAR                                                     $3
    6    14        INIT_FCALL                                                   'array_fill'
         15        SEND_VAL                                                     0
         16        SEND_VAL                                                     100
         17        SEND_VAL                                                     3
         18        DO_ICALL                                             $4      
         19        SEND_VAR                                                     $4
    3    20        DO_ICALL                                             $5      
         21        ASSIGN                                                       !0, $5
    9    22        COUNT                                                ~7      !0
         23        ECHO                                                         ~7
   11    24      > 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/8VDEa
function name:  {closure:/in/8VDEa:3}
number of ops:  4
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2      > RETURN                                                       1
          3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.32 ms | 1481 KiB | 16 Q