3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lat = 48.274996066466; $lng = 14.246049094945; $intr = 0; $boost = array(0,1,4,5,16,17,20,21,64,65,68,69,80,81,84,85); for ($i=0; $i<8; $i++) { var_dump($intr<<8); $intr = ($intr<<8) + ($boost[($lng>>(28-$i*4))%16]<<1) + $boost[($lat>>(28-$i*4))%16]; var_dump($i . " > " . $intr); }
Output for 4.3.0 - 7.1.0
int(0) string(5) "0 > 0" int(0) string(5) "1 > 0" int(0) string(5) "2 > 0" int(0) string(5) "3 > 0" int(0) string(5) "4 > 0" int(0) string(5) "5 > 0" int(0) string(5) "6 > 5" int(1280) string(8) "7 > 1448"