3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.46 ms | 1394 KiB | 17 Q