3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lat = 60; $lon = 160; $nLon = ($lon / 360) + 0.5; $nLat = abs((asinh(tan(deg2rad($lat))) / M_PI / 2) - 0.5); var_dump($nLon, $nLat);
Output for 4.3.0 - 7.1.0
float(0.94444444444444) float(0.29039964086051)