3v4l.org

run code in 300+ 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 = 39
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 39
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 37
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 37
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 37
Branch analysis from position: 37
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
filename:       /in/TG09P
function name:  (null)
number of ops:  41
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, ->39
          8    > > FE_FETCH_R                                       ~11     $10, !2, ->39
          9    >   ASSIGN                                                   !3, ~11
   11    10        ECHO                                                     '%0A--------------'
   12    11      > FE_RESET_R                                       $13     !1, ->37
         12    > > FE_FETCH_R                                       ~14     $13, !4, ->37
         13    >   ASSIGN                                                   !5, ~14
   13    14        INIT_FCALL                                               'preg_match'
         15        INIT_FCALL                                               'preg_quote'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $16     
         18        CONCAT                                           ~17     '%7E', $16
         19        CONCAT                                           ~18     ~17, '%7E'
         20        SEND_VAL                                                 ~18
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                         $19     
         23      > JMPZ                                                     $19, ->31
   14    24    >   ROPE_INIT                                     4  ~21     '%0AOK+%3D%3E+'
         25        ROPE_ADD                                      1  ~21     ~21, !2
         26        ROPE_ADD                                      2  ~21     ~21, '+-+'
         27        ROPE_END                                      3  ~20     ~21, !5
         28        ECHO                                                     ~20
   15    29      > JMP                                                      ->37
   13    30*       JMP                                                      ->36
   18    31    >   ROPE_INIT                                     4  ~24     '%0ANOK+%21%21%21+%3D%3E+'
         32        ROPE_ADD                                      1  ~24     ~24, !2
         33        ROPE_ADD                                      2  ~24     ~24, '+-+'
         34        ROPE_END                                      3  ~23     ~24, !5
         35        ECHO                                                     ~23
   12    36      > JMP                                                      ->12
         37    >   FE_FREE                                                  $13
   10    38      > JMP                                                      ->8
         39    >   FE_FREE                                                  $10
   21    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.95 ms | 1006 KiB | 15 Q