3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CTransformator_2 { //public: function CTransformator() { $this->ro = 3.1415926535897932384626433832795 / 180; $this->InitPlane(); $this->InitEllipse(); } function Destroy() { } // default plane configuration: "TM-" function InitPlane($deg1 = 24.0, $min1 = 0.0, $sec1 = 0.0, $deg2 = 0.0, $min2 = 0.0, $sec2 = 0.0, $_cf3 = -6000000, $_cf4 = 500000, $_cf5 = 0, $_cf6 = 0.9996) { $this->cf1 = ($deg1 + $min1 / 60.0 + $sec1 / 3600.0) * $this->ro; $this->cf2 = ($deg2 + $min2 / 60.0 + $sec2 / 3600.0) * $this->ro; $this->cf3 = $_cf3; $this->cf4 = $_cf4; $this->cf5 = $_cf5; $this->cf6 = $_cf6; } // default elipse GRS80 = 6378137,298.2572221 function InitEllipse($_a = 6378137.0, $_alfa = 298.2572221) { $this->a = $_a; $this->alfa = $_alfa; $b = $this->a - $this->a / $this->alfa; $this->e2 = 1.0 - ($b * $b) / ($this->a * $this->a); $this->ep2 = ($this->a * $this->a) / ($b * $b) - 1.0; // for function mer() speed optimization $e2_2 = $this->e2 * $this->e2; $e2_3 = $e2_2 * $this->e2; $this->AA = 1.0 + (3.0/4.0)*$this->e2 + (45.0/64.0)*$e2_2 + (175.0/256.0)*$e2_3; $this->BB = ((3.0/4.0)*$this->e2 + (15.0/16.0)*$e2_2 + (525.0/512.0)*$e2_3) / 2.0; $this->CC = ((15.0/64.0)*$e2_2 + (105.0/256.0)*$e2_3) / 4.0; $this->DD = (( 35.0/512.0)*$e2_3) / 6.0; $this->a1e2 = $this->a*(1.0-$this->e2); } function GaussTU($B, $L, &$x, &$y, &$gam, &$merr) { $B *= $this->ro; $L *= $this->ro; $sinB = sin($B); $cosB = cos($B); $t = $sinB / $cosB; //tan(B); $t2 = $t * $t; $nn = $this->N($sinB); $M1 = $cosB * $cosB; $M2 = $M1 * $M1; $et2 = $this->ep2 * $M1; $et4 = $et2 * $et2; $X_L = $this->mer(0, $B); $l0 = $this->cf1; if ($this->cf2 > 0) { $l0 = abs($L - $this->cf1) + $this->cf2 / 2.0; $l0 = $this->IntPart($l0 / $this->cf2) * $this->cf2; if ($L < $this->cf1) $l0 = -$l0; $l0 += $this->cf1; } $ltd = $l0; // ------------------ WORK $lm = $L - $ltd; $lm2 = $lm * $lm; $lm4 = $lm2 * $lm2; $x = $X_L + ($lm2 / 2.0) * $nn * $sinB * $cosB * (1 + (($lm2 * $M1) / 12.0) * (5 - $t2 + 9*$et2 + 4*$et4) + (($lm4 * $M2) / 360.0) * (61 - 58*$t2 + $t2*$t2)); $y = $lm * $nn * $cosB * (1 + (($lm2 * $M1) / 6.0) * (1 - $t2 + $et2) + (($lm4 * $M2) / 120.0) * (5 - 18*$t2 + $t2*$t2 + 14*$et2 - 58*$et2*$t2)); $gam = $lm * $sinB * (1 + ($lm2/3.0) * $M1 * (1 + 3*$et2) + ($lm4/15.0) * $M2 * (2 - $t2)); $merr = 1 + ((1 + $et2) / 2.0) * $lm2 * $M1 + ((5 - 4*$t2) / 24.0) * $lm4 * $M2; $x = $x * $this->cf6 + $this->cf3; $y = $y * $this->cf6 + $this->cf4; if ($this->cf2 > 0) $y += $this->cf5 * ($ltd - $this->cf1) / $this->cf2; // ------------------ END OF WORK $merr *= $this->cf6; } function GaussPU($x, $y, &$B, &$L) { /*double Bx, dx, xa, yy, y2, y4, Mx, Mx2, Nx, Nx2, tx, tx2, eta2, dn;*/ $x = ($x - $this->cf3) / $this->cf6; $yy = $y - $this->cf4; $dn = 0; if ($this->cf5 > 0) { $dn = $this->IntPart($yy / $this->cf5 + (($yy < 0) ? -0.5 : +0.5)); $yy -= $dn * $this->cf5; } $yy /= $this->cf6; $y2 = $yy * $yy; $y4 = $y2 * $y2; // --------- Bx calculation ---------- $Bx = $x / $this->M(sin($x / $this->M(0) / 2.0)); $xa = $this->mer(0, $Bx); // xa = meridiana loka garums $dx = $x - $xa; // delta x while (abs($dx) > 0.0000001) { $Bx += $dx / $this->M(sin($Bx)); // jauna Bx vertiba $xa = $this->mer(0, $Bx); // xa = meridiana loka garums $dx = $x - $xa; // cikla kontroles aprekins } // --------- tx un eta aprekins ---------- $cosBx = cos($Bx); $sinBx = sin($Bx); $eta2 = $this->ep2 * $cosBx * $cosBx; $tx = $sinBx / $cosBx; // tan(Bx) $tx2 = $tx * $tx; // --------- Mx un Nx aprekins ---------- $Mx = $this->M($sinBx); $Mx2 = $Mx * $Mx; $Nx = $this->N($sinBx); $Nx2 = $Nx * $Nx; // --------- B aprekins ---------- $B = $Bx - ($y2 / (2*$Mx*$Nx)) * $tx * (1 - ($y2 / (12*$Nx2)) * (5 + 3*$tx2 + $eta2 - 9*$eta2 *$tx2) + ($y4 / (360*$Nx2*$Nx2)) * (61 + 90*$tx2 + 45*$tx2*$tx2)); // --------- L aprekins ---------- $L = ($yy / ($Nx*$cosBx)) * (1 - ($y2 / (6*$Nx2)) * (1 + 2*$tx2 + $eta2) + ($y4 / (120*$Nx2*$Nx2)) * (5 + 28*$tx2 + 24*$tx2*$tx2 + 6*$eta2 + 8*$eta2 *$tx2)); // Izmainit geodezisko garumu $L += $this->cf1; if ($this->cf2 > 0) $L += $dn * $this->cf2; $L /= $this->ro; $B /= $this->ro; } //private: function IntPart($d) { return ($d >= 0) ? floor($d) : ceil($d); } // round towards zero function W($sinB) { return sqrt(1-$this->e2*$sinB*$sinB); } function M($sinB) { $r = $this->W($sinB); return $this->a*(1-$this->e2)/($r*$r*$r); } function N($sinB) { return $this->a/$this->W($sinB); } function mer($b1, $b2) { if ($b1 == 0) // optimization return $this->a1e2 * ($this->AA*$b2 - $this->BB*sin(2*$b2) + $this->CC*sin(4*$b2) - $this->DD*sin(6*$b2)); else return $this->a1e2 * ($this->AA*($b2-$b1) - $this->BB*(sin(2*$b2)-sin(2*$b1)) + $this->CC*(sin(4*$b2)-sin(4*$b1)) - $this->DD*(sin(6*$b2)-sin(6*$b1))); } var $a, $alfa, $e2, $ep2; var $cf1, $cf2, $cf3, $cf4, $cf5, $cf6; var $AA, $BB, $CC, $DD, $a1e2; // for function mer() speed optimization var $ro; } function eho($what, $label) { echo "\n\n" . $label . ': '; dump($what); echo "\n\n"; } function dump() { $args = func_get_args(); return call_user_func_array('var_dump', $args); } function ehobool($b, $label) { eho($b ? 'true' : 'false', $label); } function f($lat, $lon, &$x, &$y) { $x = 500019.68325692; $y = 500019.68325692; } function g($lat, $lon, &$x, &$y) { if ($lat == 0 || $lon == 0 || abs($lat) >= 360 || abs($lon) >= 360) { $x = 0; $y = 0; } else { $gam = NULL; $merr = NULL; $t = new CTransformator_2(); // For some UNKNOWN REASON x and y has been exchanged somewhere! $t->GaussTU($lat,$lon,$y,$x,$gam,$merr); $t->Destroy(); if ($lat < 45 && $lon > 38) { $x = $x - 1760.18; $y = $y - 239.29; } } } function h($lat, $lon, &$x, &$y) { f($lat, $lon, $x, $y); } function CalculateRegularFenceCoords ($fCentreLat, $fCentreLon, $fRadius, $iVertices) { //$a = shell_exec( // "node $shell_scripts_path/nodejs/calculate_regular_fence.js --www_path=$source_www_path " . // "--lat=$fCentreLat --lon=$fCentreLon --radius=$fRadius --vertices=$iVertices" //); //eho($a, 'shell_exec'); $a = '{"lats":["56.998210","56.998210","56.998279","56.998414","56.998610","56.998859","56.999152","56.999478","56.999824","57.000176","57.000522","57.000848","57.001141","57.001390","57.001586","57.001721","57.001789","57.001789","57.001721","57.001586","57.001390","57.001141","57.000848","57.000522","57.000176","56.999824","56.999478","56.999152","56.998859","56.998610","56.998414","56.998279","56.998210"],"lons":["24.000324","23.999676","23.999042","23.998444","23.997906","23.997448","23.997088","23.996841","23.996714","23.996714","23.996841","23.997088","23.997448","23.997906","23.998444","23.999042","23.999676","24.000324","24.000958","24.001556","24.002094","24.002552","24.002912","24.003159","24.003286","24.003286","24.003159","24.002912","24.002552","24.002094","24.001556","24.000958","24.000324"]}'; $aFenceCoords = json_decode($a, true); foreach ($aFenceCoords['lats'] as $i => $fLat) { $aFenceCoords['xes'][$i] = 500019.68325692; g($aFenceCoords['lats'][$i], $aFenceCoords['lons'][$i], $aFenceCoords['xes'][$i], $aFenceCoords['ys'][$i]); } return $aFenceCoords; } $actual = CalculateRegularFenceCoords(57, 24, 200, 32); unset($actual['lats'], $actual['lons'], $actual['ys']); for ($i = 0; $i <= 31; ++$i) { unset($actual['xes'][$i]); } eho($actual, '$actual'); ehobool($actual["xes"][32] == 500019.68325692, '$actual["xes"][32] == 500019.68325692'); eho($actual["xes"][32], '$actual["xes"][32]'); $actual= array( "xes"=> array( 32=> 500019.68325692 ) ); eho($actual, '$actual'); ehobool($actual["xes"][32] == 500019.68325692, '$actual["xes"][32] == 500019.68325692'); eho($actual["xes"][32], '$actual["xes"][32]');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 12
Branch analysis from position: 17
Branch analysis from position: 12
filename:       /in/BeqOc
function name:  (null)
number of ops:  53
compiled vars:  !0 = $actual, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  280     0  E >   INIT_FCALL                                               'calculateregularfencecoords'
          1        SEND_VAL                                                 57
          2        SEND_VAL                                                 24
          3        SEND_VAL                                                 200
          4        SEND_VAL                                                 32
          5        DO_FCALL                                      0  $2      
          6        ASSIGN                                                   !0, $2
  282     7        UNSET_DIM                                                !0, 'lats'
          8        UNSET_DIM                                                !0, 'lons'
          9        UNSET_DIM                                                !0, 'ys'
  283    10        ASSIGN                                                   !1, 0
         11      > JMP                                                      ->15
  284    12    >   FETCH_DIM_UNSET                                  $5      !0, 'xes'
         13        UNSET_DIM                                                $5, !1
  283    14        PRE_INC                                                  !1
         15    >   IS_SMALLER_OR_EQUAL                                      !1, 31
         16      > JMPNZ                                                    ~7, ->12
  286    17    >   INIT_FCALL                                               'eho'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '%24actual'
         20        DO_FCALL                                      0          
  287    21        INIT_FCALL                                               'ehobool'
         22        FETCH_DIM_R                                      ~9      !0, 'xes'
         23        FETCH_DIM_R                                      ~10     ~9, 32
         24        IS_EQUAL                                         ~11     ~10, 500020
         25        SEND_VAL                                                 ~11
         26        SEND_VAL                                                 '%24actual%5B%22xes%22%5D%5B32%5D+%3D%3D+500019.68325692'
         27        DO_FCALL                                      0          
  288    28        INIT_FCALL                                               'eho'
         29        FETCH_DIM_R                                      ~13     !0, 'xes'
         30        FETCH_DIM_R                                      ~14     ~13, 32
         31        SEND_VAL                                                 ~14
         32        SEND_VAL                                                 '%24actual%5B%22xes%22%5D%5B32%5D'
         33        DO_FCALL                                      0          
  290    34        ASSIGN                                                   !0, <array>
  297    35        INIT_FCALL                                               'eho'
         36        SEND_VAR                                                 !0
         37        SEND_VAL                                                 '%24actual'
         38        DO_FCALL                                      0          
  298    39        INIT_FCALL                                               'ehobool'
         40        FETCH_DIM_R                                      ~18     !0, 'xes'
         41        FETCH_DIM_R                                      ~19     ~18, 32
         42        IS_EQUAL                                         ~20     ~19, 500020
         43        SEND_VAL                                                 ~20
         44        SEND_VAL                                                 '%24actual%5B%22xes%22%5D%5B32%5D+%3D%3D+500019.68325692'
         45        DO_FCALL                                      0          
  299    46        INIT_FCALL                                               'eho'
         47        FETCH_DIM_R                                      ~22     !0, 'xes'
         48        FETCH_DIM_R                                      ~23     ~22, 32
         49        SEND_VAL                                                 ~23
         50        SEND_VAL                                                 '%24actual%5B%22xes%22%5D%5B32%5D'
         51        DO_FCALL                                      0          
         52      > RETURN                                                   1

Function eho:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  eho
number of ops:  10
compiled vars:  !0 = $what, !1 = $label
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  220     0  E >   RECV                                             !0      
          1        RECV                                             !1      
  222     2        CONCAT                                           ~2      '%0A%0A', !1
          3        CONCAT                                           ~3      ~2, '%3A+'
          4        ECHO                                                     ~3
  223     5        INIT_FCALL_BY_NAME                                       'dump'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
  224     8        ECHO                                                     '%0A%0A'
  225     9      > RETURN                                                   null

End of function eho

Function dump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  dump
number of ops:  8
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  227     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
  228     2        INIT_FCALL                                               'var_dump'
          3        SEND_ARRAY                                               !0
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      0  $3      
          6      > RETURN                                                   $3
  229     7*     > RETURN                                                   null

End of function dump

Function ehobool:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  ehobool
number of ops:  11
compiled vars:  !0 = $b, !1 = $label
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  231     0  E >   RECV                                             !0      
          1        RECV                                             !1      
  233     2        INIT_FCALL                                               'eho'
          3      > JMPZ                                                     !0, ->6
          4    >   QM_ASSIGN                                        ~2      'true'
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~2      'false'
          7    >   SEND_VAL                                                 ~2
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0          
  234    10      > RETURN                                                   null

End of function ehobool

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  f
number of ops:  7
compiled vars:  !0 = $lat, !1 = $lon, !2 = $x, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  235     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
  237     4        ASSIGN                                                   !2, 500020
  238     5        ASSIGN                                                   !3, 500020
  239     6      > RETURN                                                   null

End of function f

Function g:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 48
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
Branch analysis from position: 43
Branch analysis from position: 20
Branch analysis from position: 14
Branch analysis from position: 8
filename:       /in/BeqOc
function name:  g
number of ops:  49
compiled vars:  !0 = $lat, !1 = $lon, !2 = $x, !3 = $y, !4 = $gam, !5 = $merr, !6 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  240     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
  242     4        IS_EQUAL                                         ~7      !0, 0
          5      > JMPNZ_EX                                         ~7      ~7, ->8
          6    >   IS_EQUAL                                         ~8      !1, 0
          7        BOOL                                             ~7      ~8
          8    > > JMPNZ_EX                                         ~7      ~7, ->14
          9    >   INIT_FCALL                                               'abs'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        IS_SMALLER_OR_EQUAL                              ~10     360, $9
         13        BOOL                                             ~7      ~10
         14    > > JMPNZ_EX                                         ~7      ~7, ->20
         15    >   INIT_FCALL                                               'abs'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        IS_SMALLER_OR_EQUAL                              ~12     360, $11
         19        BOOL                                             ~7      ~12
         20    > > JMPZ                                                     ~7, ->24
  243    21    >   ASSIGN                                                   !2, 0
  244    22        ASSIGN                                                   !3, 0
         23      > JMP                                                      ->48
  246    24    >   ASSIGN                                                   !4, null
  247    25        ASSIGN                                                   !5, null
  248    26        NEW                                              $17     'CTransformator_2'
         27        DO_FCALL                                      0          
         28        ASSIGN                                                   !6, $17
  250    29        INIT_METHOD_CALL                                         !6, 'GaussTU'
         30        SEND_VAR_EX                                              !0
         31        SEND_VAR_EX                                              !1
         32        SEND_VAR_EX                                              !3
         33        SEND_VAR_EX                                              !2
         34        SEND_VAR_EX                                              !4
         35        SEND_VAR_EX                                              !5
         36        DO_FCALL                                      0          
  251    37        INIT_METHOD_CALL                                         !6, 'Destroy'
         38        DO_FCALL                                      0          
  252    39        IS_SMALLER                                       ~22     !0, 45
         40      > JMPZ_EX                                          ~22     ~22, ->43
         41    >   IS_SMALLER                                       ~23     38, !1
         42        BOOL                                             ~22     ~23
         43    > > JMPZ                                                     ~22, ->48
  253    44    >   SUB                                              ~24     !2, 1760.18
         45        ASSIGN                                                   !2, ~24
  254    46        SUB                                              ~26     !3, 239.29
         47        ASSIGN                                                   !3, ~26
  257    48    > > RETURN                                                   null

End of function g

Function h:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  h
number of ops:  11
compiled vars:  !0 = $lat, !1 = $lon, !2 = $x, !3 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  258     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
  260     4        INIT_FCALL                                               'f'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_REF                                                 !2
          8        SEND_REF                                                 !3
          9        DO_FCALL                                      0          
  261    10      > RETURN                                                   null

End of function h

Function calculateregularfencecoords:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 32
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 32
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/BeqOc
function name:  CalculateRegularFenceCoords
number of ops:  35
compiled vars:  !0 = $fCentreLat, !1 = $fCentreLon, !2 = $fRadius, !3 = $iVertices, !4 = $a, !5 = $aFenceCoords, !6 = $fLat, !7 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  262     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
  269     4        ASSIGN                                                   !4, '%7B%22lats%22%3A%5B%2256.998210%22%2C%2256.998210%22%2C%2256.998279%22%2C%2256.998414%22%2C%2256.998610%22%2C%2256.998859%22%2C%2256.999152%22%2C%2256.999478%22%2C%2256.999824%22%2C%2257.000176%22%2C%2257.000522%22%2C%2257.000848%22%2C%2257.001141%22%2C%2257.001390%22%2C%2257.001586%22%2C%2257.001721%22%2C%2257.001789%22%2C%2257.001789%22%2C%2257.001721%22%2C%2257.001586%22%2C%2257.001390%22%2C%2257.001141%22%2C%2257.000848%22%2C%2257.000522%22%2C%2257.000176%22%2C%2256.999824%22%2C%2256.999478%22%2C%2256.999152%22%2C%2256.998859%22%2C%2256.998610%22%2C%2256.998414%22%2C%2256.998279%22%2C%2256.998210%22%5D%2C%22lons%22%3A%5B%2224.000324%22%2C%2223.999676%22%2C%2223.999042%22%2C%2223.998444%22%2C%2223.997906%22%2C%2223.997448%22%2C%2223.997088%22%2C%2223.996841%22%2C%2223.996714%22%2C%2223.996714%22%2C%2223.996841%22%2C%2223.997088%22%2C%2223.997448%22%2C%2223.997906%22%2C%2223.998444%22%2C%2223.999042%22%2C%2223.999676%22%2C%2224.000324%22%2C%2224.000958%22%2C%2224.001556%22%2C%2224.002094%22%2C%2224.002552%22%2C%2224.002912%22%2C%2224.003159%22%2C%2224.003286%22%2C%2224.003286%22%2C%2224.003159%22%2C%2224.002912%22%2C%2224.002552%22%2C%2224.002094%22%2C%2224.001556%22%2C%2224.000958%22%2C%2224.000324%22%5D%7D'
  270     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !4
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !5, $9
  272    10        FETCH_DIM_R                                      ~11     !5, 'lats'
         11      > FE_RESET_R                                       $12     ~11, ->32
         12    > > FE_FETCH_R                                       ~13     $12, !6, ->32
         13    >   ASSIGN                                                   !7, ~13
  273    14        FETCH_DIM_W                                      $15     !5, 'xes'
         15        ASSIGN_DIM                                               $15, !7
         16        OP_DATA                                                  500020
  274    17        INIT_FCALL                                               'g'
         18        FETCH_DIM_R                                      ~17     !5, 'lats'
         19        FETCH_DIM_R                                      ~18     ~17, !7
         20        SEND_VAL                                                 ~18
         21        FETCH_DIM_R                                      ~19     !5, 'lons'
         22        FETCH_DIM_R                                      ~20     ~19, !7
         23        SEND_VAL                                                 ~20
         24        FETCH_DIM_W                                      $21     !5, 'xes'
         25        FETCH_DIM_W                                      $22     $21, !7
         26        SEND_REF                                                 $22
         27        FETCH_DIM_W                                      $23     !5, 'ys'
         28        FETCH_DIM_W                                      $24     $23, !7
         29        SEND_REF                                                 $24
         30        DO_FCALL                                      0          
  272    31      > JMP                                                      ->12
         32    >   FE_FREE                                                  $12
  277    33      > RETURN                                                   !5
  278    34*     > RETURN                                                   null

End of function calculateregularfencecoords

Class CTransformator_2:
Function ctransformator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  CTransformator
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_OBJ                                               'ro'
          1        OP_DATA                                                  0.0174533
   11     2        INIT_METHOD_CALL                                         'InitPlane'
          3        DO_FCALL                                      0          
   12     4        INIT_METHOD_CALL                                         'InitEllipse'
          5        DO_FCALL                                      0          
   13     6      > RETURN                                                   null

End of function ctransformator

Function destroy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  Destroy
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   null

End of function destroy

Function initplane:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  InitPlane
number of ops:  35
compiled vars:  !0 = $deg1, !1 = $min1, !2 = $sec1, !3 = $deg2, !4 = $min2, !5 = $sec2, !6 = $_cf3, !7 = $_cf4, !8 = $_cf5, !9 = $_cf6
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV_INIT                                        !0      24
          1        RECV_INIT                                        !1      0
          2        RECV_INIT                                        !2      0
          3        RECV_INIT                                        !3      0
          4        RECV_INIT                                        !4      0
          5        RECV_INIT                                        !5      0
          6        RECV_INIT                                        !6      -6000000
          7        RECV_INIT                                        !7      500000
          8        RECV_INIT                                        !8      0
          9        RECV_INIT                                        !9      0.9996
   25    10        DIV                                              ~11     !1, 60
         11        ADD                                              ~12     !0, ~11
         12        DIV                                              ~13     !2, 3600
         13        ADD                                              ~14     ~12, ~13
         14        FETCH_OBJ_R                                      ~15     'ro'
         15        MUL                                              ~16     ~14, ~15
         16        ASSIGN_OBJ                                               'cf1'
         17        OP_DATA                                                  ~16
   26    18        DIV                                              ~18     !4, 60
         19        ADD                                              ~19     !3, ~18
         20        DIV                                              ~20     !5, 3600
         21        ADD                                              ~21     ~19, ~20
         22        FETCH_OBJ_R                                      ~22     'ro'
         23        MUL                                              ~23     ~21, ~22
         24        ASSIGN_OBJ                                               'cf2'
         25        OP_DATA                                                  ~23
   27    26        ASSIGN_OBJ                                               'cf3'
         27        OP_DATA                                                  !6
   28    28        ASSIGN_OBJ                                               'cf4'
         29        OP_DATA                                                  !7
   29    30        ASSIGN_OBJ                                               'cf5'
         31        OP_DATA                                                  !8
   30    32        ASSIGN_OBJ                                               'cf6'
         33        OP_DATA                                                  !9
   31    34      > RETURN                                                   null

End of function initplane

Function initellipse:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BeqOc
function name:  InitEllipse
number of ops:  70
compiled vars:  !0 = $_a, !1 = $_alfa, !2 = $b, !3 = $e2_2, !4 = $e2_3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E >   RECV_INIT                                        !0      6.37814e+6
          1        RECV_INIT                                        !1      298.257
   36     2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  !0
   37     4        ASSIGN_OBJ                                               'alfa'
          5        OP_DATA                                                  !1
   39     6        FETCH_OBJ_R                                      ~7      'a'
          7        FETCH_OBJ_R                                      ~8      'a'
          8        FETCH_OBJ_R                                      ~9      'alfa'
          9        DIV                                              ~10     ~8, ~9
         10        SUB                                              ~11     ~7, ~10
         11        ASSIGN                                                   !2, ~11
   40    12        MUL                                              ~14     !2, !2
         13        FETCH_OBJ_R                                      ~15     'a'
         14        FETCH_OBJ_R                                      ~16     'a'
         15        MUL                                              ~17     ~15, ~16
         16        DIV                                              ~18     ~14, ~17
         17        SUB                                              ~19     1, ~18
         18        ASSIGN_OBJ                                               'e2'
         19        OP_DATA                                                  ~19
   41    20        FETCH_OBJ_R                                      ~21     'a'
         21        FETCH_OBJ_R                                      ~22     'a'
         22        MUL                                              ~23     ~21, ~22
         23        MUL                                              ~24     !2, !2
         24        DIV                                              ~25     ~23, ~24
         25        SUB                                              ~26     ~25, 1
         26        ASSIGN_OBJ                                               'ep2'
         27        OP_DATA                                                  ~26
   44    28        FETCH_OBJ_R                                      ~27     'e2'
         29        FETCH_OBJ_R                                      ~28     'e2'
         30        MUL                                              ~29     ~27, ~28
         31        ASSIGN                                                   !3, ~29
   45    32        FETCH_OBJ_R                                      ~31     'e2'
         33        MUL                                              ~32     !3, ~31
         34        ASSIGN                                                   !4, ~32
   46    35        FETCH_OBJ_R                                      ~35     'e2'
         36        MUL                                              ~36     ~35, 0.75
         37        ADD                                              ~37     1, ~36
         38        MUL                                              ~38     !3, 0.703125
         39        ADD                                              ~39     ~37, ~38
         40        MUL                                              ~40     !4, 0.683594
         41        ADD                                              ~41     ~39, ~40
         42        ASSIGN_OBJ                                               'AA'
         43        OP_DATA                                                  ~41
   47    44        FETCH_OBJ_R                                      ~43     'e2'
         45        MUL                                              ~44     ~43, 0.75
         46        MUL                                              ~45     !3, 0.9375
         47        ADD                                              ~46     ~44, ~45
         48        MUL                                              ~47     !4, 1.02539
         49        ADD                                              ~48     ~46, ~47
         50        DIV                                              ~49     ~48, 2
         51        ASSIGN_OBJ                                               'BB'
         52        OP_DATA                                                  ~49
   48    53        MUL                                              ~51     !3, 0.234375
         54        MUL                                              ~52     !4, 0.410156
         55        ADD                                              ~53     ~51, ~52
         56        DIV                                              ~54     ~53, 4
         57        ASSIGN_OBJ                                               'CC'
         58        OP_DATA                                                  ~54
   49    59        MUL                                              ~56     !4, 0.0683594
         60        DIV                                              ~57     ~56, 6
         61        ASSIGN_OBJ                                               'DD'
         62        OP_DATA                                                  ~57
   50    63        FETCH_OBJ_R                                      ~59     'a'
         64        FETCH_OBJ_R                                      ~60     'e2'
         65        SUB                                              ~61     1, ~60
         66        MUL                                              ~62     ~59, ~61
         67        ASSIGN_OBJ                                               'a1e2'
         68        OP_DATA                                                  ~62
   51    69      > RETURN                                                   null

En

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
264.44 ms | 1431 KiB | 30 Q