3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = []; $words = ['foo', 'bar', 'baz', 'fubar', 'fubaz']; while (300 > count($txt)) { $txt .= $words[array_rand($words)] . ' '; } echo rtrim($txt);

preferences:
32.38 ms | 402 KiB | 5 Q