3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errorMessage = ""; $email = "michael.cande-lori@gmail-end.com"; if (!$email) { $errorMessage .= "<div class=\"error\">You must enter an e-mail address!</div>"; } elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $errorMessage .= "<div class=\"error\">You must enter a valid e-mail!</div>"; } echo $errorMessage; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/PaeAN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $errorMessage, !1 = $email
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 'michael.cande-lori%40gmail-end.com'
    6     2        BOOL_NOT                                         ~4      !1
          3      > JMPZ                                                     ~4, ->6
    7     4    >   ASSIGN_OP                                     8          !0, '%3Cdiv+class%3D%22error%22%3EYou+must+enter+an+e-mail+address%21%3C%2Fdiv%3E'
          5      > JMP                                                      ->13
    8     6    >   INIT_FCALL                                               'filter_var'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 274
          9        DO_ICALL                                         $6      
         10        BOOL_NOT                                         ~7      $6
         11      > JMPZ                                                     ~7, ->13
    9    12    >   ASSIGN_OP                                     8          !0, '%3Cdiv+class%3D%22error%22%3EYou+must+enter+a+valid+e-mail%21%3C%2Fdiv%3E'
   12    13    >   ECHO                                                     !0
   14    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.93 ms | 1386 KiB | 15 Q