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 '$sql' (T_VARIABLE) in /in/NCMhu on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/NCMhu on line 5
Process exited with code 255.