3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( '/category/arts_and_entertainment' => 'Arts And Entertainment', '/category/arts_and_entertainment/animation_and_comics' => 'Animation And Comics', '//twitter.com/share' => 'Tweet', '/website/mangafox.me' => 'Mangafox.me', '/website/mangareader.net' => 'Mangareader.net' ); $vals = array_intersect_key( $array, array_flip( preg_grep( '/^\/website\//', array_keys( $array ) ) ) ); echo "<pre>"; print_r($vals);exit;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/nbWhX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $vals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'array_intersect_key'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'array_flip'
          4        INIT_FCALL                                               'preg_grep'
          5        SEND_VAL                                                 '%2F%5E%5C%2Fwebsite%5C%2F%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        ECHO                                                     '%3Cpre%3E'
         17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > EXIT                                                     
         21*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.12 ms | 1386 KiB | 23 Q