3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mapper = [ 10014869 => "A", 10010380 => "B", 10112932 => "C", 10113908 => "D", 10115620 => "E", 10014876 => "F", 10017457 => "G", 10010397 => "H" ]; $array = [ 1 => 10014869, 2 => 10014869, 3 => 10010380, 4 => 10112932, 5 => 10112932, 6 => 10113908, 7 => 10115620, 8 => 10014876, 9 => 10017457, 10 => 10010397, ]; foreach($array as $key => $value) { $array[$key] = $mapper[$value]; } print_r($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/DRgOA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $mapper, !1 = $array, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   26     2      > FE_RESET_R                                       $6      !1, ->9
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->9
          4    >   ASSIGN                                                   !3, ~7
   27     5        FETCH_DIM_R                                      ~10     !0, !2
          6        ASSIGN_DIM                                               !1, !3
          7        OP_DATA                                                  ~10
   26     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $6
   30    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.03 ms | 1435 KiB | 14 Q