3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lat = 60; $lon = 160; $nLon = ($lon / 360) + 0.5; $nLat = abs((asinh(tan(deg2rad($lat))) / M_PI / 2) - 0.5); var_dump($nLon, $nLat);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RVQrI
function name:  (null)
number of ops:  26
compiled vars:  !0 = $lat, !1 = $lon, !2 = $nLon, !3 = $nLat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 60
    4     1        ASSIGN                                                   !1, 160
    6     2        DIV                                              ~6      !1, 360
          3        ADD                                              ~7      ~6, 0.5
          4        ASSIGN                                                   !2, ~7
    7     5        INIT_FCALL                                               'abs'
          6        INIT_FCALL                                               'asinh'
          7        INIT_FCALL                                               'tan'
          8        INIT_FCALL                                               'deg2rad'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        DO_ICALL                                         $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                         $11     
         15        DIV                                              ~12     $11, 3.14159
         16        DIV                                              ~13     ~12, 2
         17        SUB                                              ~14     ~13, 0.5
         18        SEND_VAL                                                 ~14
         19        DO_ICALL                                         $15     
         20        ASSIGN                                                   !3, $15
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.64 ms | 1395 KiB | 23 Q