3v4l.org

run code in 500+ PHP versions simultaneously
<?php $PregArray = ['date:1111aaa', ':222aaa', '@odia tvled']; $array['attract (step-date:1111aaa)'] = 'OK'; $array['type (step-date:222aaa)'] = 'OK'; $array['@odia tvled'] = 'OK'; foreach ($PregArray as $key_1 => $val_1) { echo "\n--------------"; foreach ($array as $key_2 => $val_2) { if (preg_match('~' . preg_quote($val_1) . '~', $key_2)) { echo "\nOK => $val_1 - $key_2"; break; } else { echo "\nNOK !!! => $val_1 - $key_2"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 36
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 36
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 34
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 34
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 34
Branch analysis from position: 34
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/TG09P
function name:  (null)
number of ops:  38
compiled vars:  !0 = $PregArray, !1 = $array, !2 = $val_1, !3 = $key_1, !4 = $val_2, !5 = $key_2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    6     1        ASSIGN_DIM                                                   !1, 'attract+%28step-date%3A1111aaa%29'
          2        OP_DATA                                                      'OK'
    7     3        ASSIGN_DIM                                                   !1, 'type+%28step-date%3A222aaa%29'
          4        OP_DATA                                                      'OK'
    8     5        ASSIGN_DIM                                                   !1, '%40odia+tvled'
          6        OP_DATA                                                      'OK'
   10     7      > FE_RESET_R                                           $10     !0, ->36
          8    > > FE_FETCH_R                                           ~11     $10, !2, ->36
          9    >   ASSIGN                                                       !3, ~11
   11    10        ECHO                                                         '%0A--------------'
   12    11      > FE_RESET_R                                           $13     !1, ->34
         12    > > FE_FETCH_R                                           ~14     $13, !4, ->34
         13    >   ASSIGN                                                       !5, ~14
   13    14        INIT_FCALL                                                   'preg_quote'
         15        SEND_VAR                                                     !2
         16        DO_ICALL                                             $16     
         17        CONCAT                                               ~17     '%7E', $16
         18        CONCAT                                               ~18     ~17, '%7E'
         19        FRAMELESS_ICALL_2                preg_match          ~19     ~18, !5
         20      > JMPZ                                                         ~19, ->28
   14    21    >   ROPE_INIT                                         4  ~21     '%0AOK+%3D%3E+'
         22        ROPE_ADD                                          1  ~21     ~21, !2
         23        ROPE_ADD                                          2  ~21     ~21, '+-+'
         24        ROPE_END                                          3  ~20     ~21, !5
         25        ECHO                                                         ~20
   15    26      > JMP                                                          ->34
   13    27*       JMP                                                          ->33
   18    28    >   ROPE_INIT                                         4  ~24     '%0ANOK+%21%21%21+%3D%3E+'
         29        ROPE_ADD                                          1  ~24     ~24, !2
         30        ROPE_ADD                                          2  ~24     ~24, '+-+'
         31        ROPE_END                                          3  ~23     ~24, !5
         32        ECHO                                                         ~23
   12    33      > JMP                                                          ->12
         34    >   FE_FREE                                                      $13
   10    35      > JMP                                                          ->8
         36    >   FE_FREE                                                      $10
   21    37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.9 ms | 2312 KiB | 16 Q