3v4l.org

run code in 300+ PHP versions simultaneously
<?php function md5Reverse($hash) : Generator { $stringGenerator = stringGenerator(); foreach($stringGenerator as $string) { if(md5($string) === $hash){ yield $string; } } } function stringGenerator(): Generator { $state = ''; yield $state; } echo md5('');

preferences:
54.26 ms | 402 KiB | 5 Q