3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_email = 'asd@toyota.com'; $re_to = "[^@]+@[^@]"; //"[^@]+@[^@]*toyota[^@]*\.[^@]+"; $regex = preg_quote($re_to, '#') . '$'; $res = preg_match("#$regex#i", $user_email); echo $res ? '1' : '0';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y6jeI
function name:  (null)
number of ops:  22
compiled vars:  !0 = $user_email, !1 = $re_to, !2 = $regex, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'asd%40toyota.com'
    7     1        ASSIGN                                                   !1, '%5B%5E%40%5D%2B%40%5B%5E%40%5D'
    9     2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%23'
          5        DO_ICALL                                         $6      
          6        CONCAT                                           ~7      $6, '%24'
          7        ASSIGN                                                   !2, ~7
   11     8        INIT_FCALL                                               'preg_match'
          9        ROPE_INIT                                     3  ~10     '%23'
         10        ROPE_ADD                                      1  ~10     ~10, !2
         11        ROPE_END                                      2  ~9      ~10, '%23i'
         12        SEND_VAL                                                 ~9
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   13    16      > JMPZ                                                     !3, ->19
         17    >   QM_ASSIGN                                        ~14     '1'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~14     '0'
         20    >   ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.6 ms | 1395 KiB | 17 Q