3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.1 ms | 1394 KiB | 17 Q