3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = array(4, 13, 6, 8, 10); $names = array('alice', 'bob', 'charles', 'david', 'elizabeth'); $special_name = 2; $special_id = 13; $mapped = array_combine($ids, $names); $mapped[$special_id] = $names[$special_name]; var_export($mapped);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tl2pS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $ids, !1 = $names, !2 = $special_name, !3 = $special_id, !4 = $mapped
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 2
    6     3        ASSIGN                                                   !3, 13
    8     4        INIT_FCALL                                               'array_combine'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !4, $9
    9     9        FETCH_DIM_R                                      ~12     !1, !2
         10        ASSIGN_DIM                                               !4, !3
         11        OP_DATA                                                  ~12
   10    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.96 ms | 1010 KiB | 15 Q