3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = mysqli_connect("162.243.243.156","root","root", "January12"); if ($db->connect_error) { die('Connect Error: ' . $db->connect_error); } $result1 = mysqli_query("SELECT * from Apple ORDER BY Date ASC", $db); $result2 = mysqli_query("SELECT * from Google ORDER BY Date ASC", $db); $Apple = array(); $Google = array(); echo "well..."; while (($row1 = mysqli_fetch_array($result1)) && ($row2 = mysqli_fetch_array($result2))) { echo "is it the date fetch?"; $Date1 = $row1["Date"]->fetch_row($result1); $Date2 = $row2["Date"]->fetch_row($result2); echo "maybe..."; if ($Date1 == $Date2) { $Apple = $row1["Close Price"]->fetch_all(MYSQLI_NUM); $Google = $row2["Close Price"]->fetch_all(MYSQLI_NUM); echo "it worked"; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/NjWgp:2 Stack trace: #0 {main} thrown in /in/NjWgp on line 2
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:
72.58 ms | 401 KiB | 8 Q