3v4l.org

run code in 300+ PHP versions simultaneously
<?php class sqlConnection{ public $mysqli; public function __construct(){ $this->mysqli = new mysqli("private","private","private","private"); if($this->mysqli->connect_errno){ echo "MySQL Connection Is FUCKED!, Error:" . $this->mysqli->connect_error; die("EOF"); } } } class Transaction extends sqlConnection{ public function Add_Customer($cfn,$cln,$cmail){ //Prepare the statement and check if its all good or else MISSION ABORT! if(!$p_stmt = $mysqli->prepare("INSERT INTO customers(customer_first_name,customer_last_name,customer_email) VALUES (?,?,?)")){ die("Oh boy oh boy oooooohhhhh boy, Uhm so yeh its like ye not working..."); } //Bind the stuff to the prepared statement mysqli stage 2 if(!$p_stmt->bind_param("sss",$cfn,$cln,$cmail)){ die("Failed to glue the customer into the Database..."); } //AIM AND FIRE! if(!$p_stmt->execute()){ die("Super orbit Ion lasser not stronk enough to kill..."); } } }
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:
40.3 ms | 401 KiB | 8 Q