3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array("oh" => "D:"); $sql = "INSERT INTO ".'cms_lol'." (" . implode(', ',array_keys($data)) . ") VALUES (".str_repeat('? ,', count($data)-1)." ?) ON DUPLICATE KEY UPDATE ". implode(' = ?, ',array_keys($data)) . " = ?";
Output for 4.3.0 - 7.1.0