3v4l.org

run code in 500+ PHP versions simultaneously
<?php $mail = "pietjepuk+werk@gmail.com"; if (filter_var($mail, FILTER_VALIDATE_EMAIL)) { echo 'VALID'; } else { echo 'NOT VALID'; } if(preg_match("/^[A-Za-z0-9\_.-]+@[A-Za-z0-9\_-]+.[A-Za-z0-9\_-]+.*/",$mail)) { echo 'VALID'; } else { echo 'NOT VALID'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/qDoiC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $mail
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'pietjepuk%2Bwerk%40gmail.com'
    3     1        INIT_FCALL                                                   'filter_var'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     274
          4        DO_ICALL                                             $2      
          5      > JMPZ                                                         $2, ->8
    4     6    >   ECHO                                                         'VALID'
    3     7      > JMP                                                          ->9
    6     8    >   ECHO                                                         'NOT+VALID'
    9     9    >   FRAMELESS_ICALL_2                preg_match          ~3      '%2F%5E%5BA-Za-z0-9%5C_.-%5D%2B%40%5BA-Za-z0-9%5C_-%5D%2B.%5BA-Za-z0-9%5C_-%5D%2B.%2A%2F', !0
         10      > JMPZ                                                         ~3, ->13
   10    11    >   ECHO                                                         'VALID'
    9    12      > JMP                                                          ->14
   12    13    >   ECHO                                                         'NOT+VALID'
   13    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.42 ms | 2145 KiB | 14 Q