3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sesiune = "4313870916074"; for ($i = 998; $i >= 0; $i--) { echo '-----------------------------'; echo $sesiune; echo '\r\nContent-Disposition: form-data; name="codes['; echo $i; echo '][code]"\r\n\r\n'; echo rand_chars("34789abcde", 6); echo '\r\n'; echo '<br>'; } echo '-----------------------------'; echo $sesiune; echo '\r\nContent-Disposition: form-data; name="submit"\r\n\r\nTrimite\r\n'; echo '-----------------------------'; echo $sesiune; echo '--\r\n'; function rand_chars($c, $l, $u = FALSE) { if (!$u) for ($s = '', $i = 0, $z = strlen($c)-1; $i < $l; $x = rand(0,$z), $s .= $c{$x}, $i++); else for ($i = 0, $z = strlen($c)-1, $s = $c{rand(0,$z)}, $i = 1; $i != $l; $x = rand(0,$z), $s .= $c{$x}, $s = ($s{$i} == $s{$i-1} ? substr($s,0,-1) : $s), $i=strlen($s)); return $s; } ?>