3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = ''; $hashes = array(); do { $str .= '0'; $hashes[] = crypt($str, '$2a$10$1234567890123456789012'); if (count(array_unique($hashes)) === count($hashes)) $allUnique = true; else $allUnique = false; } while($allUnique); echo "Stopped at " . strlen($str) . " characters before truncation was detected...\n\n"; $lst = array_pop($hashes); $stl = array_pop($hashes); echo "$stl\n$lst";
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0

Process exited with code 137.
Output for 4.3.0 - 5.2.17

Process exited with code 139.