3v4l.org

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

preferences:
26.68 ms | 402 KiB | 5 Q