3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __int32($numeric_value){ $x = (float)$numeric_value; $y = pow(2,32); if ($x > $y) { $x = pow(2,31)-1; } elseif ($x >= pow(2,31)) { $x -= $y; } return (int)$x; } function crc32int($string) { return __int32(hexdec(hash("crc32b", $string))); } echo crc32int('http://staging.megafon.ru/ext/');

preferences:
27.66 ms | 402 KiB | 5 Q