3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <?php $query = "SELECT r.revision_id, r.content_id, r.user_id, r.entry_name, r.entry_description, r.date_added, r.date_modified FROM modules_acls_entries_content_revisions r INNER JOIN modules_acls_entries_content c ON (c.content_id = r.content_id) WHERE r.revision_id = ?;"; if(preg_match_all('/((FROM|JOIN) `(.*)`)/', $query, $matches)) { $tables = array_unique($matches[3]); print_r($tables); }
Output for 7.0.0 - 7.1.7
Parse error: syntax error, unexpected '<', expecting end of file in /in/845UQ on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected '<', expecting $end in /in/845UQ:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '<' in /in/845UQ on line 3
Process exited with code 255.