3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.24 ms | 1395 KiB | 15 Q