3v4l.org

run code in 300+ PHP versions simultaneously
<?php // new data $id = $_POST['memids']; $truck_no = $_POST['truck_no']; $vin = $_POST['vin']; $plate = $_POST['plate']; $trk_status = $_POST['status']; // query $sql = "UPDATE truck SET truck_no=?, vin=?, plate=?, trk_status=?, user_id=? WHERE id=?"; $q = $db->prepare($sql); $q->execute(array($truck_no,$vin,$plate,$trk_status,$u->username,$id)); header("Location: truck.php"); exit; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "memids" in /in/7PNQR on line 3 Warning: Undefined array key "truck_no" in /in/7PNQR on line 4 Warning: Undefined array key "vin" in /in/7PNQR on line 5 Warning: Undefined array key "plate" in /in/7PNQR on line 6 Warning: Undefined array key "status" in /in/7PNQR on line 7 Warning: Undefined variable $db in /in/7PNQR on line 12 Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/7PNQR:12 Stack trace: #0 {main} thrown in /in/7PNQR on line 12
Process exited with code 255.

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:
57.46 ms | 401 KiB | 8 Q