3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
Fatal error: Call to undefined function md5sum() in /in/dEG2L on line 18
Process exited with code 255.

preferences:
259.98 ms | 402 KiB | 347 Q