3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "daanbonke@hotmail.com"; if(filter_var($var, FILTER_SANITIZE_EMAIL) !== false && filter_var($var, FILTER_VALIDATE_EMAIL) !== false) { echo 'it is mail'; }else{ echo 'is is phone'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/pPkdp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'daanbonke%40hotmail.com'
    3     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 517
          4        DO_ICALL                                         $2      
          5        TYPE_CHECK                                  1018  ~3      $2
          6      > JMPZ_EX                                          ~3      ~3, ->13
          7    >   INIT_FCALL                                               'filter_var'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 274
         10        DO_ICALL                                         $4      
         11        TYPE_CHECK                                  1018  ~5      $4
         12        BOOL                                             ~3      ~5
         13    > > JMPZ                                                     ~3, ->16
    4    14    >   ECHO                                                     'it+is+mail'
         15      > JMP                                                      ->17
    6    16    >   ECHO                                                     'is+is+phone'
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.36 ms | 1395 KiB | 15 Q