3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbh = new PDO("sqlite::memory:"); $calories = (int) 150; $colour = 'red'; $sth = $dbh->prepare('SELECT 1 WHERE 1 = :calories AND 2 = :colour'); if ($sth->bindParam(':calories', $calories, PDO::PARAM_INT) !== true) die('die on ' . __LINE__. "\n"); if ($sth->bindValue(':colour', $colour, PDO::PARAM_STR) !== true) die('die on ' . __LINE__. "\n"); $sth->debugDumpParams();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
218.49 ms | 2778 KiB | 10 Q