3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function significant_number($string){ $offset=9; $string=substr($string, $offset); $count=strlen($string); $i=0; while($i < $count){ if(ctype_digit($string[$i])) { break; } $i++; } return $string[$i]; } $udid="086786dc4ae78dbf6a6a9b621b5ae4"; $md5udid=md5sum($udid); $sigNo=significant_number($udid); $testudid=substr($md5udid, 4, sigNo).substr($udid, sigNo, 6); echo $testudid; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function md5sum() in /in/dEG2L:18 Stack trace: #0 {main} thrown in /in/dEG2L on line 18
Process exited with code 255.
Output for 5.3.6 - 5.6.28, hhvm-3.12.0
Fatal error: Call to undefined function md5sum() in /in/dEG2L on line 18
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.