3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.11 ms | 1878 KiB | 15 Q