3v4l.org

run code in 200+ php & hhvm versions
<?php $emails = [ "john.doe@example.com", "joh````oe@example.com", "john@.doe@example.com", "@example.com", "john.doe@example", ]; foreach($emails as $email){ if (filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "$email is a valid email address\n"; } else { echo"$email is NOT a valid email address\n"; } }
based on SoBPV
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/jfYJo
function name:  (null)
number of ops:  18
compiled vars:  !0 = $emails, !1 = $email
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   ASSIGN                                                   !0, <array>
  11     1      > FE_RESET_R                                       $3      !0, ->16
         2    > > FE_FETCH_R                                               $3, !1, ->16
  12     3    >   INIT_FCALL                                               'filter_var'
         4        SEND_VAR                                                 !1
         5        SEND_VAL                                                 274
         6        DO_ICALL                                         $4      
         7      > JMPZ                                                     $4, ->12
  13     8    >   NOP                                                      
         9        FAST_CONCAT                                      ~5      !1, '+is+a+valid+email+address%0A'
        10        ECHO                                                     ~5
        11      > JMP                                                      ->15
  15    12    >   NOP                                                      
        13        FAST_CONCAT                                      ~6      !1, '+is+NOT+a+valid+email+address%0A'
        14        ECHO                                                     ~6
        15    > > JMP                                                      ->2
        16    >   FE_FREE                                                  $3
  17    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0