3v4l.org

run code in 300+ 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']; foreach ($objs->data as $row) { foreach ($blacklist as $forbidden_string) { if (stripos($row->guestEmail, $forbidden_string) !== false) { continue 2; } } $emails[] = $row->guestEmail; } var_export($emails);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 30
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 30
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 25
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 25
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/GKsiU
function name:  (null)
number of ops:  35
compiled vars:  !0 = $objs, !1 = $blacklist, !2 = $row, !3 = $forbidden_string, !4 = $emails
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~5      <array>
          1        INIT_ARRAY                                       ~6      ~5
    5     2        CAST                                          8  ~7      <array>
          3        ADD_ARRAY_ELEMENT                                ~6      ~7
    6     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>
   12    10        FETCH_OBJ_R                                      ~13     !0, 'data'
         11      > FE_RESET_R                                       $14     ~13, ->30
         12    > > FE_FETCH_R                                               $14, !2, ->30
   13    13    > > FE_RESET_R                                       $15     !1, ->25
         14    > > FE_FETCH_R                                               $15, !3, ->25
   14    15    >   INIT_FCALL                                               'stripos'
         16        FETCH_OBJ_R                                      ~16     !2, 'guestEmail'
         17        SEND_VAL                                                 ~16
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $17     
         20        TYPE_CHECK                                  1018          $17
         21      > JMPZ                                                     ~18, ->24
   15    22    >   FE_FREE                                                  $15
         23      > JMP                                                      ->12
   13    24    > > JMP                                                      ->14
         25    >   FE_FREE                                                  $15
   18    26        FETCH_OBJ_R                                      ~20     !2, 'guestEmail'
         27        ASSIGN_DIM                                               !4
         28        OP_DATA                                                  ~20
   12    29      > JMP                                                      ->12
         30    >   FE_FREE                                                  $14
   21    31        INIT_FCALL                                               'var_export'
         32        SEND_VAR                                                 !4
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.74 ms | 1016 KiB | 15 Q