3v4l.org

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)
5.4.270.0200.06318.79
5.4.260.0100.09318.82
5.4.250.0100.07318.92
5.4.240.0000.06018.80
5.4.230.0070.05718.79
5.4.220.0070.06018.91
5.4.210.0030.08018.79
5.4.200.0130.05318.99
5.4.190.0000.06318.98
5.4.180.0070.07318.94
5.4.170.0130.05018.78
5.4.160.0130.06018.93
5.4.150.0170.05018.63
5.4.140.0070.07316.39
5.4.130.0100.06716.56
5.4.120.0030.05316.42
5.4.110.0070.05316.40
5.4.100.0100.05716.51
5.4.90.0130.05316.38
5.4.80.0200.05316.48
5.4.70.0130.06316.45
5.4.60.0070.06716.45
5.4.50.0070.05716.45
5.4.40.0100.07016.38
5.4.30.0130.06316.36
5.4.20.0070.06716.54
5.4.10.0230.05316.29
5.4.00.0000.05315.98
5.3.280.0100.06014.60
5.3.270.0130.05714.61
5.3.260.0200.05314.46
5.3.250.0030.06314.60
5.3.240.0130.07014.62
5.3.230.0070.05714.46
5.3.220.0130.07714.57
5.3.210.0170.06714.59
5.3.200.0130.06714.72
5.3.190.0170.06014.59
5.3.180.0200.07014.61
5.3.170.0030.05714.57
5.3.160.0030.07314.72
5.3.150.0130.06714.26
5.3.140.0100.05314.56
5.3.130.0070.05014.47
5.3.120.0100.05714.40
5.3.110.0100.07714.59
5.3.100.0130.05013.81
5.3.90.0100.05714.04
5.3.80.0100.06013.89
5.3.70.0230.06014.18
5.3.60.0130.06013.77
5.3.50.0170.05713.96
5.3.40.0130.04313.99
5.3.30.0100.06313.94
5.3.20.0030.05313.72
5.3.10.0170.05713.50
5.3.00.0070.07013.69
5.2.170.0030.04010.91
5.2.160.0070.05311.09
5.2.150.0070.04011.16
5.2.140.0130.04011.06
5.2.130.0070.04011.04
5.2.120.0130.04711.11
5.2.110.0030.05311.11
5.2.100.0100.04010.86
5.2.90.0030.05711.12
5.2.80.0070.05011.02
5.2.70.0070.06011.09
5.2.60.0130.03010.81
5.2.50.0070.05711.17
5.2.40.0030.05711.09
5.2.30.0030.04710.89
5.2.20.0070.05310.88
5.2.10.0070.05010.94
5.2.00.0130.04710.80
5.1.60.0100.02710.05
5.1.50.0070.03010.02
5.1.40.0000.05310.04
5.1.30.0070.04010.39
5.1.20.0030.03710.41
5.1.10.0130.03310.13
5.1.00.0030.0379.95
5.0.50.0070.0278.59
5.0.40.0100.0308.29
5.0.30.0070.0438.13
5.0.20.0100.0278.24
5.0.10.0070.0278.14
5.0.00.0000.0508.13
4.4.90.0000.0236.84
4.4.80.0030.0236.84
4.4.70.0030.0306.84
4.4.60.0030.0206.84
4.4.50.0030.0306.84
4.4.40.0100.0376.84
4.4.30.0000.0306.84
4.4.20.0000.0236.84
4.4.10.0030.0306.84
4.4.00.0030.0336.84
4.3.110.0000.0276.84
4.3.100.0030.0236.84
4.3.90.0000.0306.84
4.3.80.0070.0376.84
4.3.70.0000.0236.84
4.3.60.0030.0206.84
4.3.50.0070.0176.84
4.3.40.0130.0306.84
4.3.30.0100.0206.84
4.3.20.0030.0306.84
4.3.10.0030.0206.84
4.3.00.0100.0207.01