3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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(''); var_dump(md5Reverse('d41d8cd98f00b204e9800998ecf8427e'));
based on nntXs
Output for hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0alpha1
d41d8cd98f00b204e9800998ecf8427eobject(Generator)#1 (0) { }
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting '{' in /in/34mso on line 4
Process exited with code 255.