3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/ADKT6
function name:  (null)
number of ops:  13
compiled vars:  !0 = $email, !1 = $errorMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BOOL_NOT                                         ~2      !0
          1      > JMPZ                                                     ~2, ->4
    4     2    >   ASSIGN_OP                                     8          !1, '%3Cdiv+class%3D%22error%22%3EYou+must+enter+an+e-mail+address%21%3C%2Fdiv%3E'
          3      > JMP                                                      ->11
    5     4    >   INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 274
          7        DO_ICALL                                         $4      
          8        BOOL_NOT                                         ~5      $4
          9      > JMPZ                                                     ~5, ->11
    6    10    >   ASSIGN_OP                                     8          !1, '%3Cdiv+class%3D%22error%22%3EYou+must+enter+a+valid+e-mail%21%3C%2Fdiv%3E'
    9    11    >   ECHO                                                     !1
   11    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.75 ms | 1394 KiB | 15 Q