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"; echo "rn"; $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 = 70
Branch analysis from position: 70
2 jumps found. (Code = 44) Position 1 = 72, Position 2 = 18
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 23
Branch analysis from position: 68
2 jumps found. (Code = 44) Position 1 = 72, Position 2 = 18
Branch analysis from position: 72
Branch analysis from position: 18
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 65
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 68, Position 2 = 23
Branch analysis from position: 68
Branch analysis from position: 23
Branch analysis from position: 65
filename:       /in/2f90d
function name:  (null)
number of ops:  73
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                                                      ->70
   27    18    >   ASSIGN                                                   !7, 0
   28    19        ASSIGN                                                   !10, 0
   29    20        ASSIGN                                                   !13, 3000
   30    21        ASSIGN                                                   !1, 0
   31    22      > JMP                                                      ->66
   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        ECHO                                                     'rn'
   34    35        INIT_FCALL                                               'sin'
         36        DIV                                              ~40     !1, 180
         37        INIT_FCALL                                               'pi'
         38        DO_ICALL                                         $41     
         39        MUL                                              ~42     $41, ~40
         40        SEND_VAL                                                 ~42
         41        DO_ICALL                                         $43     
         42        ASSIGN                                                   !9, $43
   35    43        MUL                                              ~45     !2, !9
         44        ASSIGN                                                   !8, ~45
   36    45        INIT_FCALL                                               'cos'
         46        DIV                                              ~47     !1, 180
         47        INIT_FCALL                                               'pi'
         48        DO_ICALL                                         $48     
         49        MUL                                              ~49     $48, ~47
         50        SEND_VAL                                                 ~49
         51        DO_ICALL                                         $50     
         52        ASSIGN                                                   !12, $50
   37    53        MUL                                              ~52     !2, !12
         54        ASSIGN                                                   !11, ~52
   38    55        ADD                                              ~54     !7, !8
         56        ASSIGN                                                   !7, ~54
   39    57        ADD                                              ~56     !10, !11
         58        ASSIGN                                                   !10, ~56
   40    59        SUB                                              ~58     !13, !14
         60        ASSIGN                                                   !13, ~58
   41    61        IS_SMALLER                                               !1, !0
         62      > JMPZ                                                     ~60, ->65
   42    63    >   ADD                                              ~61     !1, 3
         64        ASSIGN                                                   !1, ~61
   44    65    >   ECHO                                                     '%0A++++++++++'
   31    66    >   IS_SMALLER_OR_EQUAL                                      0, !13
         67      > JMPNZ                                                    ~63, ->23
   47    68    >   ECHO                                                     '%0A++++'
   26    69        ASSIGN_OP                                     1          !0, 3
         70    >   IS_SMALLER_OR_EQUAL                                      !0, 180
         71      > JMPNZ                                                    ~65, ->18
   49    72    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.76 ms | 1404 KiB | 19 Q