3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['banana','apple','corn',['pear','coconut']]; echo'<pre>'; print_r(array_map(array_fill_keys($array,[]),$array)); print_r(array_fill_keys($array,[]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2sFPl
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ECHO                                                     '%3Cpre%3E'
    5     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_map'
          4        INIT_FCALL                                               'array_fill_keys'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'array_fill_keys'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 <array>
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1395 KiB | 19 Q