3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $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 5.0.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6 int(0) Notice: Undefined variable: lng in /in/JVknG on line 6 Notice: Undefined variable: lat in /in/JVknG on line 6