3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = [1, 2, 3, 4, 5]; $vendors = ["Amazon", "Newegg", "##php"]; foreach ($products as $productID) { foreach ($vendors as $vendor) { printf("Combination: %s at %s\n", $productID, $vendor); } }
Output for git.master, git.master_jit, rfc.property-hooks
Combination: 1 at Amazon Combination: 1 at Newegg Combination: 1 at ##php Combination: 2 at Amazon Combination: 2 at Newegg Combination: 2 at ##php Combination: 3 at Amazon Combination: 3 at Newegg Combination: 3 at ##php Combination: 4 at Amazon Combination: 4 at Newegg Combination: 4 at ##php Combination: 5 at Amazon Combination: 5 at Newegg Combination: 5 at ##php

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:
40.01 ms | 402 KiB | 8 Q