3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "primary" => "#6ca6d9", "success" => "#479d63", "info" => "#5bc0de", "warning" => "#F39124", "danger" => "#d9695f", "purple" => "#fd44c7", "light-blue" => "#00b3ec", "blue" => "#026d8f", "green" => "#9ac333", "red" => "#fe2c78", ]; $a = array_keys($array); var_dump(array_combine($a, $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/063At
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   15     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_combine'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.41 ms | 1394 KiB | 19 Q