3v4l.org

run code in 300+ PHP versions simultaneously
<?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); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 3 in /in/fS61Q on line 6 Fatal error: Uncaught TypeError: array_unique(): Argument #1 ($array) must be of type array, null given in /in/fS61Q:6 Stack trace: #0 /in/fS61Q(6): array_unique(NULL) #1 {main} thrown in /in/fS61Q on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.67 ms | 401 KiB | 8 Q