3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(":memory:"); $stmt = $db->prepare("select 1, 2, 3 from sqlite_master where 1 = ?"); // bindParam crash $i = 0; $stmt->bindParam(0, $i); // bindValue crash $stmt->bindParam(0, 1); echo "bound\n"; // not reached $stmt->execute(); $db->close();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
177.68 ms | 2143 KiB | 8 Q