3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1=array_fill(0, 3, 'Id'); $arr2=array(5,6,7); print_r($arr1); print_r(array_combine(array_values($arr1),$arr2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5K2TL
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 3
          3        SEND_VAL                                                 'Id'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        ASSIGN                                                   !1, <array>
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'print_r'
         11        INIT_FCALL                                               'array_combine'
         12        INIT_FCALL                                               'array_values'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.3 ms | 1386 KiB | 21 Q