3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { const 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`)"; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.10.0070.07320.23
7.0.00.0030.08320.06
5.6.160.0100.04320.57
5.6.150.0100.05718.17
5.6.140.0070.08018.18
5.6.130.0070.04018.21
5.6.120.0070.08321.11
5.6.110.0100.03721.13
5.6.100.0070.05020.96
5.6.90.0030.09320.97
5.6.80.0170.06320.38
5.5.300.0070.04317.98
5.5.290.0070.08317.95
5.5.280.0000.05020.86
5.5.270.0070.04320.76
5.5.260.0170.04020.87
5.5.250.0100.06720.68
5.5.240.0130.07720.05

preferences:
137.96 ms | 1394 KiB | 7 Q