3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_hash($str, $range=100){ $number = crc32($str); return $number % $range; } /* $hash = md5("ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"); echo base_convert($hash, 16, 10); */ $hash = "ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"; echo str_hash($hash, 5);
Output for git.master, git.master_jit, rfc.property-hooks
1

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58.13 ms | 401 KiB | 8 Q