3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 'bcdfghjklmnprstvwz'; //consonants except hard to speak ones $v = 'aeiou'; //vowels $a = $c.$v; //both for ($i = 1; $i <= 10; $i++) { $pw = ''; //use two syllables... for($j=0;$j < 2; $j++){ $pw .= $c[rand(0, strlen($c)-1)]; $pw .= $v[rand(0, strlen($v)-1)]; $pw .= $a[rand(0, strlen($a)-1)]; } echo $pw . "\n"; }

preferences:
37.12 ms | 402 KiB | 5 Q