3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("abc", "def", "ghi"); $excludeKeyword_arr = array("ab", "de"); $values_with_bc = preg_grep("/". implode("|", $excludeKeyword_arr) . "/", $array); $filterArray = array_diff($array, $values_with_bc); print_r($filterArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IpNal
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $excludeKeyword_arr, !2 = $values_with_bc, !3 = $filterArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'preg_grep'
          3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%7C'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      '%2F', $6
          8        CONCAT                                           ~8      ~7, '%2F'
          9        SEND_VAL                                                 ~8
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    6    13        INIT_FCALL                                               'array_diff'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !3, $11
    8    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1013 KiB | 17 Q