3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "dbutt@westminstertoyota.com"; $pattern = '/^[^@]+@[^@]*toyota[^@]*\.[^@]+/'; //preg_match($pattern, $subject, $matches); //print_r($matches); $regex = preg_quote($pattern, '#') . '$'; $res = preg_match("#$regex#i", $subject); print_r($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lWLtr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $subject, !1 = $pattern, !2 = $regex, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'dbutt%40westminstertoyota.com'
    3     1        ASSIGN                                                   !1, '%2F%5E%5B%5E%40%5D%2B%40%5B%5E%40%5D%2Atoyota%5B%5E%40%5D%2A%5C.%5B%5E%40%5D%2B%2F'
    6     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
    7     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
    8    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.09 ms | 1399 KiB | 19 Q