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); } }
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
162.32 ms | 405 KiB | 5 Q