run code in 200+ php & hhvm versions
Bugs & Features
<?php $inpx = 3484481.0943; //input X $inpy = 3144325.1033;//input Y $inpz = 4305103.1740;//input Z $dx = -2.0796; //delta X $dy = -0.3484; //delta Y $dz = 1.7009; //delta Z $rx = (0.05465*M_PI)/(3600*180); $ry = (-0.06718*M_PI/(3600*180); $rz = (0.06143*M_PI)/(3600*180); $n = 1+0.0181/pow(10,6); $X84=$n*$inpx-$rz*$n*$inpy+$ry*$n*$inpz+$dx; $Y84=$rz*$n*$inpx+$n*$inpy-$rx*$n*$inpz+$dy; $Z84=-$ry*$n*$inpx+$rx*$n*$inpy+$n*$inpz+$dz; $X84 = round($X84,4); $Y84 = round($Y84,4); $Z84 = round($Z84,4); var_dump($x84, $Y84, $Z84);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)