3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1394 KiB | 17 Q