3v4l.org

run code in 500+ PHP versions simultaneously
<?php $my_array = array("Sandra Loor,593984076233","Adrian,593998016010","Lucas,593999843424"); $to_remove = array("593984076233","593998016010"); $to_remove = "/" . implode("|", $to_remove) . "/"; $match = preg_grep($to_remove, $my_array); $filtered = array_diff($my_array, $match); var_dump($filtered);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PZ4I6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $my_array, !1 = $to_remove, !2 = $match, !3 = $filtered
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        FRAMELESS_ICALL_2                implode             ~6      '%7C', !1
          3        CONCAT                                               ~7      '%2F', ~6
          4        CONCAT                                               ~8      ~7, '%2F'
          5        ASSIGN                                                       !1, ~8
    7     6        INIT_FCALL                                                   'preg_grep'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $10     
         10        ASSIGN                                                       !2, $10
    8    11        INIT_FCALL                                                   'array_diff'
         12        SEND_VAR                                                     !0
         13        SEND_VAR                                                     !2
         14        DO_ICALL                                             $12     
         15        ASSIGN                                                       !3, $12
   10    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !3
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.4 ms | 2591 KiB | 16 Q