3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lat = 48.274996066466; $lng = 14.246049094945; var_dump($lat); $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 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 9
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 9
Branch analysis from position: 36
Branch analysis from position: 9
filename:       /in/eK3Zv
function name:  (null)
number of ops:  37
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        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        ASSIGN                                                   !2, 0
    6     6        ASSIGN                                                   !3, <array>
    7     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->34
    8     9    >   INIT_FCALL                                               'var_dump'
         10        SL                                               ~11     !2, 8
         11        SEND_VAL                                                 ~11
         12        DO_ICALL                                                 
    9    13        SL                                               ~13     !2, 8
         14        MUL                                              ~14     !4, 4
         15        SUB                                              ~15     28, ~14
         16        SR                                               ~16     !1, ~15
         17        MOD                                              ~17     ~16, 16
         18        FETCH_DIM_R                                      ~18     !3, ~17
         19        SL                                               ~19     ~18, 1
         20        ADD                                              ~20     ~13, ~19
         21        MUL                                              ~21     !4, 4
         22        SUB                                              ~22     28, ~21
         23        SR                                               ~23     !0, ~22
         24        MOD                                              ~24     ~23, 16
         25        FETCH_DIM_R                                      ~25     !3, ~24
         26        ADD                                              ~26     ~20, ~25
         27        ASSIGN                                                   !2, ~26
   10    28        INIT_FCALL                                               'var_dump'
         29        CONCAT                                           ~28     !4, '+%3E+'
         30        CONCAT                                           ~29     ~28, !2
         31        SEND_VAL                                                 ~29
         32        DO_ICALL                                                 
    7    33        PRE_INC                                                  !4
         34    >   IS_SMALLER                                               !4, 8
         35      > JMPNZ                                                    ~32, ->9
   12    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.12 ms | 1396 KiB | 15 Q