3v4l.org

run code in 300+ PHP versions simultaneously
<?php $BASE_QUERY = "SELECT wp.ID FROM `{$this->tablePosts}` wp INNER JOIN `{$this->tablePostMeta}` wm ON (wm.`post_id` = wp.`ID`) INNER JOIN `{$this->tableTermRelationships}` wtr ON (wp.`ID` = wtr.`object_id`) INNER JOIN `{$this->tableTermTaxonomy}` wtt ON (wtr.`term_taxonomy_id` = wtt.`term_taxonomy_id`) INNER JOIN `{$this->tableTerms}` wt ON (wt.`term_id` = wtt.`term_id`)";
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Using $this when not in object context in /in/XUo0j:2 Stack trace: #0 {main} thrown in /in/XUo0j on line 2
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Fatal error: Using $this when not in object context in /in/XUo0j on line 2
Process exited with code 255.

preferences:
248.04 ms | 401 KiB | 317 Q