3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.87 ms | 1395 KiB | 23 Q