3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs = [ "some string", "another string", ]; $result = array_map(null, $strs, array_fill(0, sizeof($strs), true)); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nnsRH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $strs, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 null
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'array_fill'
          5        SEND_VAL                                                 0
          6        COUNT                                            ~3      !0
          7        SEND_VAL                                                 ~3
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.73 ms | 1427 KiB | 16 Q