3v4l.org

run code in 300+ PHP versions simultaneously
<?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); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 6
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 6
Branch analysis from position: 28
Branch analysis from position: 6
filename:       /in/6sW46
function name:  (null)
number of ops:  29
compiled vars:  !0 = $lat, !1 = $lng, !2 = $intr, !3 = $boost, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 48.275
    3     1        ASSIGN                                                   !1, 14.246
    4     2        ASSIGN                                                   !2, 0
    5     3        ASSIGN                                                   !3, <array>
    6     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->26
    7     6    >   INIT_FCALL                                               'var_dump'
          7        SL                                               ~10     !2, 8
          8        SEND_VAL                                                 ~10
          9        DO_ICALL                                                 
    8    10        SL                                               ~12     !2, 8
         11        MUL                                              ~13     !4, 4
         12        SUB                                              ~14     28, ~13
         13        SR                                               ~15     !1, ~14
         14        MOD                                              ~16     ~15, 16
         15        FETCH_DIM_R                                      ~17     !3, ~16
         16        SL                                               ~18     ~17, 1
         17        ADD                                              ~19     ~12, ~18
         18        MUL                                              ~20     !4, 4
         19        SUB                                              ~21     28, ~20
         20        SR                                               ~22     !0, ~21
         21        MOD                                              ~23     ~22, 16
         22        FETCH_DIM_R                                      ~24     !3, ~23
         23        ADD                                              ~25     ~19, ~24
         24        ASSIGN                                                   !2, ~25
    6    25        PRE_INC                                                  !4
         26    >   IS_SMALLER                                               !4, 8
         27      > JMPNZ                                                    ~28, ->6
   11    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1396 KiB | 15 Q