3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_table_name = [ 'table_1', 'table_2', 'table_3', ]; $search_id = 1; $selectsArray = []; foreach ($array_table_name as $table_name) { $selectsArray[] = "SELECT * FROM $table_name WHERE id='$search_id'\n"; } $selectsUnion = implode("UNION ALL\n", $selectsArray) . "ORDER BY date_added \nLIMIT 1"; echo $selectsUnion;
Output for git.master, git.master_jit, rfc.property-hooks
SELECT * FROM table_1 WHERE id='1' UNION ALL SELECT * FROM table_2 WHERE id='1' UNION ALL SELECT * FROM table_3 WHERE id='1' ORDER BY date_added LIMIT 1

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:
117.36 ms | 405 KiB | 5 Q