3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (empty($pcn_number)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif (empty($vehicle_reg)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif (empty($street_name)){ header('Location: addpcn.php?pcnerror=2'); exit; } elseif(empty($offence)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif (empty($vehicle_make)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif (empty($vehicle_colour)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif (empty($date_issued)) { header('Location: addpcn.php?pcnerror=2'); exit; } elseif(empty($time_issued)) { header('Location: addpcn.php?pcnerror=2'); } elseif (empty($witnessed_from)) { header('Location: addpcn.php?pcnerror=2'); } elseif (empty($witnessed_to)) { header('Location: addpcn.php?pcnerror=2'); } elseif(empty($issued_by)) { header('Location: addpcn.php?pcnerror=2'); } else { $stmt = mysqli_prepare($conn, "INSERT INTO parkingtickets (pcn_number, date_issued, vehicle_reg, vehicle_make, vehicle_model, vehicle_colour, street_name, witnessed_from, witnessed_to, time_issued, offence, issued_by, paid, evidence) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, '0', ?"); if (mysqli_stmt_bind_param($stmt, 'ssssssssssss', $pcn_number, $date_issued, $vehicle_reg, $vehicle_make, $vehicle_model, $vehicle_colour, $street_name, $witnessed_from, $witnessed_to, $time_issued, $offence, $issued_by, $name)) { mysqli_stmt_execute($stmt); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 35
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 42
Branch analysis from position: 37
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 49
Branch analysis from position: 44
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 49
2 jumps found. (Code = 43) Position 1 = 51, Position 2 = 55
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 99
Branch analysis from position: 99
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 61
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 99
Branch analysis from position: 99
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 67
Branch analysis from position: 63
1 jumps found. (Code = 42) Position 1 = 99
Branch analysis from position: 99
Branch analysis from position: 67
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 73
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 99
Branch analysis from position: 99
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 96, Position 2 = 99
Branch analysis from position: 96
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 99
filename:       /in/MYZss
function name:  (null)
number of ops:  100
compiled vars:  !0 = $pcn_number, !1 = $vehicle_reg, !2 = $street_name, !3 = $offence, !4 = $vehicle_make, !5 = $vehicle_colour, !6 = $date_issued, !7 = $time_issued, !8 = $witnessed_from, !9 = $witnessed_to, !10 = $issued_by, !11 = $stmt, !12 = $conn, !13 = $vehicle_model, !14 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~15, ->7
    3     2    >   INIT_FCALL                                               'header'
          3        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
          4        DO_ICALL                                                 
    4     5      > EXIT                                                     
    2     6*       JMP                                                      ->99
    5     7    >   ISSET_ISEMPTY_CV                                         !1
          8      > JMPZ                                                     ~17, ->14
    6     9    >   INIT_FCALL                                               'header'
         10        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         11        DO_ICALL                                                 
    7    12      > EXIT                                                     
    5    13*       JMP                                                      ->99
    8    14    >   ISSET_ISEMPTY_CV                                         !2
         15      > JMPZ                                                     ~19, ->21
    9    16    >   INIT_FCALL                                               'header'
         17        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         18        DO_ICALL                                                 
   10    19      > EXIT                                                     
    8    20*       JMP                                                      ->99
   11    21    >   ISSET_ISEMPTY_CV                                         !3
         22      > JMPZ                                                     ~21, ->28
   12    23    >   INIT_FCALL                                               'header'
         24        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         25        DO_ICALL                                                 
   13    26      > EXIT                                                     
   11    27*       JMP                                                      ->99
   14    28    >   ISSET_ISEMPTY_CV                                         !4
         29      > JMPZ                                                     ~23, ->35
   15    30    >   INIT_FCALL                                               'header'
         31        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         32        DO_ICALL                                                 
   16    33      > EXIT                                                     
   14    34*       JMP                                                      ->99
   17    35    >   ISSET_ISEMPTY_CV                                         !5
         36      > JMPZ                                                     ~25, ->42
   18    37    >   INIT_FCALL                                               'header'
         38        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         39        DO_ICALL                                                 
   19    40      > EXIT                                                     
   17    41*       JMP                                                      ->99
   20    42    >   ISSET_ISEMPTY_CV                                         !6
         43      > JMPZ                                                     ~27, ->49
   21    44    >   INIT_FCALL                                               'header'
         45        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         46        DO_ICALL                                                 
   22    47      > EXIT                                                     
   20    48*       JMP                                                      ->99
   23    49    >   ISSET_ISEMPTY_CV                                         !7
         50      > JMPZ                                                     ~29, ->55
   24    51    >   INIT_FCALL                                               'header'
         52        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         53        DO_ICALL                                                 
   23    54      > JMP                                                      ->99
   25    55    >   ISSET_ISEMPTY_CV                                         !8
         56      > JMPZ                                                     ~31, ->61
   26    57    >   INIT_FCALL                                               'header'
         58        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         59        DO_ICALL                                                 
   25    60      > JMP                                                      ->99
   27    61    >   ISSET_ISEMPTY_CV                                         !9
         62      > JMPZ                                                     ~33, ->67
   28    63    >   INIT_FCALL                                               'header'
         64        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         65        DO_ICALL                                                 
   27    66      > JMP                                                      ->99
   29    67    >   ISSET_ISEMPTY_CV                                         !10
         68      > JMPZ                                                     ~35, ->73
   30    69    >   INIT_FCALL                                               'header'
         70        SEND_VAL                                                 'Location%3A+addpcn.php%3Fpcnerror%3D2'
         71        DO_ICALL                                                 
   29    72      > JMP                                                      ->99
   32    73    >   INIT_FCALL_BY_NAME                                       'mysqli_prepare'
         74        SEND_VAR_EX                                              !12
         75        SEND_VAL_EX                                              'INSERT+INTO+parkingtickets+%28pcn_number%2C+date_issued%2C+vehicle_reg%2C+vehicle_make%2C+vehicle_model%2C+vehicle_colour%2C+street_name%2C+witnessed_from%2C+witnessed_to%2C+time_issued%2C+offence%2C+issued_by%2C+paid%2C+evidence%29+VALUES+%28%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%3F%2C+%270%27%2C+%3F'
         76        DO_FCALL                                      0  $37     
         77        ASSIGN                                                   !11, $37
   33    78        INIT_FCALL_BY_NAME                                       'mysqli_stmt_bind_param'
         79        SEND_VAR_EX                                              !11
         80        SEND_VAL_EX                                              'ssssssssssss'
         81        SEND_VAR_EX                                              !0
         82        SEND_VAR_EX                                              !6
         83        SEND_VAR_EX                                              !1
         84        SEND_VAR_EX                                              !4
         85        SEND_VAR_EX                                              !13
         86        SEND_VAR_EX                                              !5
         87        SEND_VAR_EX                                              !2
         88        SEND_VAR_EX                                              !8
         89        SEND_VAR_EX                                              !9
         90        SEND_VAR_EX                                              !7
         91        SEND_VAR_EX                                              !3
         92        SEND_VAR_EX                                              !10
         93        SEND_VAR_EX                                              !14
         94        DO_FCALL                                      0  $39     
         95      > JMPZ                                                     $39, ->99
   34    96    >   INIT_FCALL_BY_NAME                                       'mysqli_stmt_execute'
         97        SEND_VAR_EX                                              !11
         98        DO_FCALL                                      0          
   36    99    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.5 ms | 1019 KiB | 14 Q