3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($sweet['customer_username'] == $username){ $cust=$sweet['customer_id']; mysql_query("INSERT INTO `shipping_address`(customer_id,address_line_1,address_line_2,post_code,county) VALUES ('$cust','$adr','$adr2','$pst','$cnty')"); foreach ($_SESSION['sweet'] as $key => $val){ mysql_query("INSERT INTO `sweets_pref`(customer_id, sweet_id, preference) VALUES ('$cust','$key', '$val')") or die('unable to connect to database'); } }
Output for git.master, git.master_jit
Warning: Undefined variable $sweet in /in/g2HGq on line 3 Warning: Trying to access array offset on value of type null in /in/g2HGq on line 3 Warning: Undefined variable $username in /in/g2HGq on line 3 Warning: Undefined variable $sweet in /in/g2HGq on line 4 Warning: Trying to access array offset on value of type null in /in/g2HGq on line 4 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/g2HGq:5 Stack trace: #0 {main} thrown in /in/g2HGq on line 5
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $sweet in /in/g2HGq on line 3 Warning: Trying to access array offset on null in /in/g2HGq on line 3 Warning: Undefined variable $username in /in/g2HGq on line 3 Warning: Undefined variable $sweet in /in/g2HGq on line 4 Warning: Trying to access array offset on null in /in/g2HGq on line 4 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/g2HGq:5 Stack trace: #0 {main} thrown in /in/g2HGq on line 5
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:
47.92 ms | 401 KiB | 8 Q