3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A; $CA; $D; $DA; $DNM; $i; $V; $X; $XINC; $XINCP; $Y; $YINC; $YINCP; $Z; $ZDEC; $ZDECP; $V = 100; $DA = 6; $DNM = $V / 3600; $D = $DNM * 1852; $ZDECP = cos($DA / 180 * pi()); $ZDEC = $D * $ZDECP; for ($A = 0; $A <= 180; $A += 3) { $X = 0; $Y = 0; $Z = 3000; $CA = 0; while ($Z >= 0) { echo "A: $A CA: $CA X: $X Y: $Y Z: $Z"; $XINCP = sin($CA / 180 * pi()); $XINC = $D * $XINCP; $YINCP = cos($CA / 180 * pi()); $YINC = $D * $YINCP; $X = $X + $XINC; $Y = $Y + $YINC; $Z = $Z - $ZDEC; if ($CA < $A) { $CA = $CA + 3; } echo" "; } echo" "; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 18
Branch analysis from position: 71
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 65
Branch analysis from position: 65
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 23
Branch analysis from position: 67
2 jumps found. (Code = 44) Position 1 = 71, Position 2 = 18
Branch analysis from position: 71
Branch analysis from position: 18
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 64
Branch analysis from position: 62
2 jumps found. (Code = 44) Position 1 = 67, Position 2 = 23
Branch analysis from position: 67
Branch analysis from position: 23
Branch analysis from position: 64
filename:       /in/LFlGk
function name:  (null)
number of ops:  72
compiled vars:  !0 = $A, !1 = $CA, !2 = $D, !3 = $DA, !4 = $DNM, !5 = $i, !6 = $V, !7 = $X, !8 = $XINC, !9 = $XINCP, !10 = $Y, !11 = $YINC, !12 = $YINCP, !13 = $Z, !14 = $ZDEC, !15 = $ZDECP
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN                                                   !6, 100
   21     1        ASSIGN                                                   !3, 6
   22     2        DIV                                              ~18     !6, 3600
          3        ASSIGN                                                   !4, ~18
   23     4        MUL                                              ~20     !4, 1852
          5        ASSIGN                                                   !2, ~20
   24     6        INIT_FCALL                                               'cos'
          7        DIV                                              ~22     !3, 180
          8        INIT_FCALL                                               'pi'
          9        DO_ICALL                                         $23     
         10        MUL                                              ~24     $23, ~22
         11        SEND_VAL                                                 ~24
         12        DO_ICALL                                         $25     
         13        ASSIGN                                                   !15, $25
   25    14        MUL                                              ~27     !2, !15
         15        ASSIGN                                                   !14, ~27
   26    16        ASSIGN                                                   !0, 0
         17      > JMP                                                      ->69
   27    18    >   ASSIGN                                                   !7, 0
   28    19        ASSIGN                                                   !10, 0
   29    20        ASSIGN                                                   !13, 3000
   30    21        ASSIGN                                                   !1, 0
   31    22      > JMP                                                      ->65
   32    23    >   ROPE_INIT                                    10  ~35     'A%3A+'
         24        ROPE_ADD                                      1  ~35     ~35, !0
         25        ROPE_ADD                                      2  ~35     ~35, '++CA%3A+'
         26        ROPE_ADD                                      3  ~35     ~35, !1
         27        ROPE_ADD                                      4  ~35     ~35, '++X%3A+'
         28        ROPE_ADD                                      5  ~35     ~35, !7
         29        ROPE_ADD                                      6  ~35     ~35, '++Y%3A+'
         30        ROPE_ADD                                      7  ~35     ~35, !10
         31        ROPE_ADD                                      8  ~35     ~35, '++Z%3A+'
         32        ROPE_END                                      9  ~34     ~35, !13
         33        ECHO                                                     ~34
   33    34        INIT_FCALL                                               'sin'
         35        DIV                                              ~40     !1, 180
         36        INIT_FCALL                                               'pi'
         37        DO_ICALL                                         $41     
         38        MUL                                              ~42     $41, ~40
         39        SEND_VAL                                                 ~42
         40        DO_ICALL                                         $43     
         41        ASSIGN                                                   !9, $43
   34    42        MUL                                              ~45     !2, !9
         43        ASSIGN                                                   !8, ~45
   35    44        INIT_FCALL                                               'cos'
         45        DIV                                              ~47     !1, 180
         46        INIT_FCALL                                               'pi'
         47        DO_ICALL                                         $48     
         48        MUL                                              ~49     $48, ~47
         49        SEND_VAL                                                 ~49
         50        DO_ICALL                                         $50     
         51        ASSIGN                                                   !12, $50
   36    52        MUL                                              ~52     !2, !12
         53        ASSIGN                                                   !11, ~52
   37    54        ADD                                              ~54     !7, !8
         55        ASSIGN                                                   !7, ~54
   38    56        ADD                                              ~56     !10, !11
         57        ASSIGN                                                   !10, ~56
   39    58        SUB                                              ~58     !13, !14
         59        ASSIGN                                                   !13, ~58
   40    60        IS_SMALLER                                               !1, !0
         61      > JMPZ                                                     ~60, ->64
   41    62    >   ADD                                              ~61     !1, 3
         63        ASSIGN                                                   !1, ~61
   43    64    >   ECHO                                                     '%0A++++++++++'
   31    65    >   IS_SMALLER_OR_EQUAL                                      0, !13
         66      > JMPNZ                                                    ~63, ->23
   46    67    >   ECHO                                                     '%0A++++'
   26    68        ASSIGN_OP                                     1          !0, 3
         69    >   IS_SMALLER_OR_EQUAL                                      !0, 180
         70      > JMPNZ                                                    ~65, ->18
   48    71    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.61 ms | 1392 KiB | 19 Q