3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = array('foo', 'bar'); foreach ($string as $string) var_dump((hexdec(substr(md5($string), -4)) % 10) + 1);
Output for 4.3.0 - 7.1.0
int(1) int(9)