3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (empty($firstname)) {$errors[] =" First Name Can not be Empty <br> ";} if (empty($lastname)) {$errors[] =" Last Name Can not be Empty <br> ";} if (empty($street)) {$errors[] =" Street Can not be Empty <br> ";} if (empty($suburb)) {$errors[] =" Suburb Can not be Empty <br> ";} if (empty($postcode)) {$errors[] =" Postcode Can not be Empty <br> ";} // elseif (!is_numeric($postcode)) {$errors[] =" Postcode must be numeric ";} elseif(!preg_match("/\^\(\[0\-9\]\{5\}\(\[\-\\s\]\?\[0\-9\]\{4\}\)\?\)\$/", $postcode)) {$errors[] =" Please enter a valid post number <br> ";} if( !preg_match("/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/i", $myemail) ) {$errors[] =" You have entered and invalid email address <br> ";} if (empty($DOB)) {$errors[] =" Date only <br> ";} ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 37
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
Branch analysis from position: 37
Branch analysis from position: 29
Branch analysis from position: 16
Branch analysis from position: 12
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/qbOcN
function name:  (null)
number of ops:  42
compiled vars:  !0 = $firstname, !1 = $errors, !2 = $lastname, !3 = $street, !4 = $suburb, !5 = $postcode, !6 = $myemail, !7 = $DOB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~8, ->4
          2    >   ASSIGN_DIM                                               !1
          3        OP_DATA                                                  '+First+Name+Can+not+be+Empty+%3Cbr%3E+'
    4     4    >   ISSET_ISEMPTY_CV                                         !2
          5      > JMPZ                                                     ~10, ->8
          6    >   ASSIGN_DIM                                               !1
          7        OP_DATA                                                  '+Last+Name+Can+not+be+Empty+%3Cbr%3E+'
    5     8    >   ISSET_ISEMPTY_CV                                         !3
          9      > JMPZ                                                     ~12, ->12
         10    >   ASSIGN_DIM                                               !1
         11        OP_DATA                                                  '+Street+Can+not+be+Empty+%3Cbr%3E+'
    6    12    >   ISSET_ISEMPTY_CV                                         !4
         13      > JMPZ                                                     ~14, ->16
         14    >   ASSIGN_DIM                                               !1
         15        OP_DATA                                                  '+Suburb+Can+not+be+Empty+%3Cbr%3E+'
    7    16    >   ISSET_ISEMPTY_CV                                         !5
         17      > JMPZ                                                     ~16, ->21
         18    >   ASSIGN_DIM                                               !1
         19        OP_DATA                                                  '+Postcode+Can+not+be+Empty+%3Cbr%3E+'
         20      > JMP                                                      ->29
    9    21    >   INIT_FCALL                                               'preg_match'
         22        SEND_VAL                                                 '%2F%5C%5E%5C%28%5C%5B0%5C-9%5C%5D%5C%7B5%5C%7D%5C%28%5C%5B%5C-%5Cs%5C%5D%5C%3F%5C%5B0%5C-9%5C%5D%5C%7B4%5C%7D%5C%29%5C%3F%5C%29%24%2F'
         23        SEND_VAR                                                 !5
         24        DO_ICALL                                         $18     
         25        BOOL_NOT                                         ~19     $18
         26      > JMPZ                                                     ~19, ->29
         27    >   ASSIGN_DIM                                               !1
         28        OP_DATA                                                  '+Please+enter+a+valid+post+number+%3Cbr%3E+'
   10    29    >   INIT_FCALL                                               'preg_match'
         30        SEND_VAL                                                 '%2F%5E%5B_a-z0-9-%5D%2B%28.%5B_a-z0-9-%5D%2B%29%2A%40%5Ba-z0-9-%5D%2B%28.%5Ba-z0-9-%5D%2B%29%2A%28.%5Ba-z%5D%7B2%2C3%7D%29%24%2Fi'
         31        SEND_VAR                                                 !6
         32        DO_ICALL                                         $21     
         33        BOOL_NOT                                         ~22     $21
         34      > JMPZ                                                     ~22, ->37
         35    >   ASSIGN_DIM                                               !1
         36        OP_DATA                                                  '+You+have+entered+and+invalid+email+address+%3Cbr%3E+'
   11    37    >   ISSET_ISEMPTY_CV                                         !7
         38      > JMPZ                                                     ~24, ->41
         39    >   ASSIGN_DIM                                               !1
         40        OP_DATA                                                  '+Date+only+%3Cbr%3E+'
   13    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
210.76 ms | 1400 KiB | 15 Q