3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('a','b','c','d'); echo '<table border="1">'; echo "<tr><th>Product 1</th><th>Product 2</th><th>Similarity</th></tr>\n"; Foreach($product as $key => $a){ Foreach(array_slice($product, $key+1) as $b){ echo '<tr><td>'.$a.'</td><td>'.$b."</td></tr>\n"; } } echo '</table>';
Output for git.master, git.master_jit, rfc.property-hooks
<table border="1"><tr><th>Product 1</th><th>Product 2</th><th>Similarity</th></tr> <tr><td>a</td><td>b</td></tr> <tr><td>a</td><td>c</td></tr> <tr><td>a</td><td>d</td></tr> <tr><td>b</td><td>c</td></tr> <tr><td>b</td><td>d</td></tr> <tr><td>c</td><td>d</td></tr> </table>

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:
123.1 ms | 406 KiB | 5 Q