3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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`)";
based on gn4WZ
Output for 7.0.0 - 7.2.0
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.3.20 - 5.6.28
Fatal error: Using $this when not in object context in /in/XUo0j on line 2
Process exited with code 255.