3v4l.org

run code in 300+ PHP versions simultaneously
<?php function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } echo valid_email('greg@eventmobi.capital');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GRQnh
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'valid_email'
          1        SEND_VAL                                                 'greg%40eventmobi.capital'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function valid_email:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GRQnh
function name:  valid_email
number of ops:  12
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5Ba-z0-9%5C%2B_%5C-%5D%2B%29%28%5C.%5Ba-z0-9%5C%2B_%5C-%5D%2B%29%2A%40%28%5Ba-z0-9%5C-%5D%2B%5C.%29%2B%5Ba-z%5D%7B2%2C6%7D%24%2Fix'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        BOOL_NOT                                         ~2      $1
          6      > JMPZ                                                     ~2, ->9
          7    >   QM_ASSIGN                                        ~3      <false>
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~3      <true>
         10    > > RETURN                                                   ~3
    6    11*     > RETURN                                                   null

End of function valid_email

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.81 ms | 1398 KiB | 16 Q