3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); // PHP 7.1 ALL error $nuova_data = '2021-10-05'; $row['BookID'] = 1; $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '$row'['BookID']"; //$query2 = $query = "UPDATE book SET year = '$nuova_data' WHERE BookID = '{$row['BookID']}'"; var_dump($query);

preferences:
18.65 ms | 405 KiB | 5 Q