3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach(array(9,5,14) AS $key) $first[$key] = 1; foreach(array(8,15,23,12) AS $key) $second[$key] = 2; print_r($first); print_r($second);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/Ik6nr
function name:  (null)
number of ops:  19
compiled vars:  !0 = $key, !1 = $first, !2 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > FE_RESET_R                                       $3      <array>, ->5
          1    > > FE_FETCH_R                                               $3, !0, ->5
          2    >   ASSIGN_DIM                                               !1, !0
          3        OP_DATA                                                  1
          4      > JMP                                                      ->1
          5    >   FE_FREE                                                  $3
    3     6      > FE_RESET_R                                       $5      <array>, ->11
          7    > > FE_FETCH_R                                               $5, !0, ->11
          8    >   ASSIGN_DIM                                               !2, !0
          9        OP_DATA                                                  2
         10      > JMP                                                      ->7
         11    >   FE_FREE                                                  $5
    5    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.15 ms | 1395 KiB | 15 Q