3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [ 'ffffffff' => 'a', 'ffflohff' => 'b', 'lohlohff' => 'c', ]; $filteredValues = array_intersect_key($values, array_flip(preg_grep('/loh/', array_keys($values)))); var_dump($filteredValues);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yvuve
function name:  (null)
number of ops:  20
compiled vars:  !0 = $values, !1 = $filteredValues
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_intersect_key'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'array_flip'
          4        INIT_FCALL                                               'preg_grep'
          5        SEND_VAL                                                 '%2Floh%2F'
          6        INIT_FCALL                                               'array_keys'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.39 ms | 1001 KiB | 18 Q