3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fake_solution="1100111010110111010010100101111101111011101101011100100001110011001110010011011011101100011100100010100011011000101011010001000010000000010110101111101001101000"; srand(0); //for me... in this server... the first rand() value after srand(0) gives "1804289383" for($i=0;$i<strlen($fake_solution);$i++){ $fake_solution[$i]=$fake_solution[$i]^(rand()%2); } echo($fake_solution);

preferences:
37.93 ms | 402 KiB | 5 Q