3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x=1; $x<6; ++$x) { $unions[] = "SELECT " . ($x==1 ? "$x AS challenge_id, 1 as week_id" : "$x, 1"); $unions[] = "SELECT $x, 6"; } $derived_table = implode(' UNION ',$unions); ECHO $derived_table;
Output for git.master_jit, git.master, rfc.property-hooks
SELECT 1 AS challenge_id, 1 as week_id UNION SELECT 1, 6 UNION SELECT 2, 1 UNION SELECT 2, 6 UNION SELECT 3, 1 UNION SELECT 3, 6 UNION SELECT 4, 1 UNION SELECT 4, 6 UNION SELECT 5, 1 UNION SELECT 5, 6

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:
177.04 ms | 401 KiB | 8 Q