3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* Demerdez vous */ echo 'erreur'; //fonction de recup dans la table yana $db_handle = sqlite_open((dirname(dirname('db/database.db'), 0666, $error) // gestion des erreurs if (!empty($error)) { echo 'erreur'; die('Erreur SQLite : '.$error); } $query = "SELECT * FROM 'yana_plugin_temp' WHERE id < 3 ORDER BY id"; $result = sqlite_array_query($db_handle, $query, SQLITE_ASSOC); if($result != ''){ echo $result;} else{ echo 'fuck'; //fermeture de la base sqlite_close($db_handle); ?>
Output for 5.4.0 - 5.6.21, 7.0.0 - 7.1.0
Parse error: syntax error, unexpected 'if' (T_IF) in /in/b4mdH on line 13
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: syntax error, unexpected T_IF in /in/b4mdH on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_IF in /in/b4mdH on line 13
Process exited with code 255.