3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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|,) ([_\w]*)/', $query, $matches)) { $tables = array_unique($matches[3]); print_r($tables); }
based on kdSLH
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Notice: Undefined offset: 3 in /in/fS61Q on line 6 Warning: array_unique() expects parameter 1 to be array, null given in /in/fS61Q on line 6
Output for hhvm-3.15.4
Notice: Undefined index: 3 in /in/fS61Q on line 6 Warning: Invalid operand type was used: expects array(s) in /in/fS61Q on line 6