3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'johnsnow@zoosk.fr'; $dictionary = array('aero', 'arpa', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel'); $expression = '^[a-z0-9_-]+(?:[a-z0-9._%+-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z]{2}|' . implode('|', $dictionary) . ')$'; echo mb_eregi($expression, $email) !== false; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nakoC
function name:  (null)
number of ops:  16
compiled vars:  !0 = $email, !1 = $dictionary, !2 = $expression
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'johnsnow%40zoosk.fr'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%7C'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        CONCAT                                           ~6      '%5E%5Ba-z0-9_-%5D%2B%28%3F%3A%5Ba-z0-9._%25%2B-%5D%2B%29%2A%40%28%3F%3A%5Ba-z0-9%5D%28%3F%3A%5Ba-z0-9-%5D%2A%5Ba-z0-9%5D%29%3F%5C.%29%2B%28%3F%3A%5BA-Z%5D%7B2%7D%7C', $5
          7        CONCAT                                           ~7      ~6, '%29%24'
          8        ASSIGN                                                   !2, ~7
    7     9        INIT_FCALL                                               'mb_eregi'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        TYPE_CHECK                                  1018  ~10     $9
         14        ECHO                                                     ~10
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.09 ms | 935 KiB | 18 Q