3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array("oh" => "D:"); $sql = "INSERT INTO ".$this->getName()." (" . implode(', ',array_keys($data)) . ") VALUES (".str_repeat('? ,', count($data)-1)." ?) ON DUPLICATE KEY UPDATE ". implode(' = ?, 'array_keys($data)) . " = ?";
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected 'array_keys' (T_STRING) in /in/O8JQL on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/O8JQL on line 6
Process exited with code 255.