3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Variable to check $email = "john.doe.com"; // Remove all illegal characters from email $email = filter_var($email, FILTER_SANITIZE_EMAIL); // Validate e-mail if (filter_var($email, FILTER_VALIDATE_EMAIL)) { echo("$email is a valid email address"); } else { echo("$email is not a valid email address"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YnOED
function name:  (null)
number of ops:  19
compiled vars:  !0 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'john.doe.com'
    6     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 517
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    9     6        INIT_FCALL                                               'filter_var'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 274
          9        DO_ICALL                                         $4      
         10      > JMPZ                                                     $4, ->15
   10    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~5      !0, '+is+a+valid+email+address'
         13        ECHO                                                     ~5
         14      > JMP                                                      ->18
   12    15    >   NOP                                                      
         16        FAST_CONCAT                                      ~6      !0, '+is+not+a+valid+email+address'
         17        ECHO                                                     ~6
   14    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.89 ms | 1395 KiB | 15 Q