3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function vigenere(array $arr){ $output = "<table>\n"; // iterate over the array foreach($arr as $letter) { // Create output row $output .= '<tr><td>'.implode('</td><td>',$arr).'</td></tr>'.PHP_EOL; // rotate the array for the next row $arr[] = array_shift($arr); } $output .= '</table>'; return $output; } echo vigenere(range("A","Z"));

Abusive script

This script was stopped while abusing our resources


preferences:
83.35 ms | 5984 KiB | 5 Q