3v4l.org

run code in 500+ PHP versions simultaneously
<?php $objs = (object)[ 'data' => [ (object)['guestEmail' => 'bad@example.com'], (object)['guestEmail' => 'okay@goodstuff.com'], (object)['guestEmail' => 'nope@example1.com'] ] ]; $blacklist = ['@example.com', 'example1.com']; $regex = '~\Q' . implode('\E|\Q', $blacklist) . '\E~'; foreach ($objs->data as $row) { if (!preg_match($regex, $row->guestEmail)) { $emails[] = $row->guestEmail; } } var_export($emails);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/PA7qc
function name:  (null)
number of ops:  30
compiled vars:  !0 = $objs, !1 = $blacklist, !2 = $regex, !3 = $row, !4 = $emails
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   CAST                                              8  ~5      <array>
          1        INIT_ARRAY                                           ~6      ~5
          2        CAST                                              8  ~7      <array>
          3        ADD_ARRAY_ELEMENT                                    ~6      ~7
          4        CAST                                              8  ~8      <array>
          5        ADD_ARRAY_ELEMENT                                    ~6      ~8
          6        INIT_ARRAY                                           ~9      ~6, 'data'
          7        CAST                                              8  ~10     ~9
    2     8        ASSIGN                                                       !0, ~10
   10     9        ASSIGN                                                       !1, <array>
   11    10        FRAMELESS_ICALL_2                implode             ~13     '%5CE%7C%5CQ', !1
         11        CONCAT                                               ~14     '%7E%5CQ', ~13
         12        CONCAT                                               ~15     ~14, '%5CE%7E'
         13        ASSIGN                                                       !2, ~15
   13    14        FETCH_OBJ_R                                          ~17     !0, 'data'
         15      > FE_RESET_R                                           $18     ~17, ->25
         16    > > FE_FETCH_R                                                   $18, !3, ->25
   14    17    >   FETCH_OBJ_R                                          ~19     !3, 'guestEmail'
         18        FRAMELESS_ICALL_2                preg_match          ~20     !2, ~19
         19        BOOL_NOT                                             ~21     ~20
         20      > JMPZ                                                         ~21, ->24
   15    21    >   FETCH_OBJ_R                                          ~23     !3, 'guestEmail'
         22        ASSIGN_DIM                                                   !4
         23        OP_DATA                                                      ~23
   13    24    > > JMP                                                          ->16
         25    >   FE_FREE                                                      $18
   19    26        INIT_FCALL                                                   'var_export'
         27        SEND_VAR                                                     !4
         28        DO_ICALL                                                     
         29      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.15 ms | 2074 KiB | 14 Q