3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( 'key1a'=>'value', 'key2a'=>'value', 'key3a'=>'value' ); $arr2 = array( 'key7b'=>'value', 'key8b'=>'value', 'key9b'=>'value' ); foreach($arr1 as $i => $val) { foreach($arr2 as $j => $val2) { echo $i . " = " . $j . ", "; } } $newarr = array_combine(array_keys($arr1), array_keys($arr2)); echo $newarr;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/BjAUd
function name:  (null)
number of ops:  29
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $val, !3 = $i, !4 = $val2, !5 = $j, !6 = $newarr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   14     2      > FE_RESET_R                                       $9      !0, ->15
          3    > > FE_FETCH_R                                       ~10     $9, !2, ->15
          4    >   ASSIGN                                                   !3, ~10
   16     5      > FE_RESET_R                                       $12     !1, ->13
          6    > > FE_FETCH_R                                       ~13     $12, !4, ->13
          7    >   ASSIGN                                                   !5, ~13
   18     8        CONCAT                                           ~15     !3, '+%3D+'
          9        CONCAT                                           ~16     ~15, !5
         10        CONCAT                                           ~17     ~16, '%2C+'
         11        ECHO                                                     ~17
   16    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $12
   14    14      > JMP                                                      ->3
         15    >   FE_FREE                                                  $9
   22    16        INIT_FCALL                                               'array_combine'
         17        INIT_FCALL                                               'array_keys'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $18     
         20        SEND_VAR                                                 $18
         21        INIT_FCALL                                               'array_keys'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $19     
         24        SEND_VAR                                                 $19
         25        DO_ICALL                                         $20     
         26        ASSIGN                                                   !6, $20
   24    27        ECHO                                                     !6
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.84 ms | 1396 KiB | 17 Q