3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['a', 'b', 'c']; $array2 = ['d' => 'e', 'f', 'g' => 'h']; $array3 = $array5 = $array1; $array4 = $array6 = $array2; $array1 = [...$array1, ...array_values($array2)]; $array3 = array_merge($array3, array_values($array4)); foreach ($array6 as $value) { $array5[] = $value; } var_dump($array1); var_dump($array3); var_dump($array5);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/FVngH
function name:  (null)
number of ops:  37
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $array5, !4 = $array4, !5 = $array6, !6 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                           ~9      !3, !0
          3        ASSIGN                                                   !2, ~9
    6     4        ASSIGN                                           ~11     !5, !1
          5        ASSIGN                                                   !4, ~11
    8     6        INIT_ARRAY                                       ~13     
          7        ADD_ARRAY_UNPACK                                 ~13     !0
          8        INIT_FCALL                                               'array_values'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $14     
         11        ADD_ARRAY_UNPACK                                 ~13     $14
         12        ASSIGN                                                   !0, ~13
   10    13        INIT_FCALL                                               'array_merge'
         14        SEND_VAR                                                 !2
         15        INIT_FCALL                                               'array_values'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                         $16     
         18        SEND_VAR                                                 $16
         19        DO_ICALL                                         $17     
         20        ASSIGN                                                   !2, $17
   12    21      > FE_RESET_R                                       $19     !5, ->26
         22    > > FE_FETCH_R                                               $19, !6, ->26
   13    23    >   ASSIGN_DIM                                               !3
         24        OP_DATA                                                  !6
   12    25      > JMP                                                      ->22
         26    >   FE_FREE                                                  $19
   16    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !0
         29        DO_ICALL                                                 
   17    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
   18    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !3
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.8 ms | 1001 KiB | 16 Q