3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputEmails = array("@alpari.ru", "@alpari.org", "@forextime.com"); $clientEmail = "daniil.bugreev@alpari.org "; foreach ($inputEmails as $inputEmail) { $emails = preg_quote($inputEmail); } if (preg_match("/^.+(" . implode("|", $emails) . ")$/", $clientEmail)) { echo "match" . PHP_EOL;} else { echo "false" . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/0QjTb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $inputEmails, !1 = $clientEmail, !2 = $inputEmail, !3 = $emails
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
          1        ASSIGN                                                   !1, 'daniil.bugreev%40alpari.org+'
    4     2      > FE_RESET_R                                       $6      !0, ->9
          3    > > FE_FETCH_R                                               $6, !2, ->9
    5     4    >   INIT_FCALL                                               'preg_quote'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !3, $7
    4     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $6
    8    10        INIT_FCALL                                               'preg_match'
         11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%7C'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $9      
         15        CONCAT                                           ~10     '%2F%5E.%2B%28', $9
         16        CONCAT                                           ~11     ~10, '%29%24%2F'
         17        SEND_VAL                                                 ~11
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $12     
         20      > JMPZ                                                     $12, ->23
    9    21    >   ECHO                                                     'match%0A'
         22      > JMP                                                      ->24
   10    23    >   ECHO                                                     'false%0A'
   11    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.43 ms | 1388 KiB | 19 Q