3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); mb_internal_encoding('utf-8'); $phrase = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; $phraseLength = mb_strlen($phrase); $letters = preg_split("//u", $phrase); $fromAngle = -80; $toAngle = 260; $radius = 12.5; $height = 30; $centerX = 40; $centerY = 15; $angle = 90; $angleBetweenLetters = 360 / $phraseLength; $screen = array(); for ($y = 0; $y < $phraseLength; $y++){ $screen[$y] = array_fill(0, 100, ' '); } for ($i = 0; $i <= $phraseLength; $i++){ $coordinateYOfLetter = $centerY + round($radius * cos(deg2rad($angle))); $coordinateXOfLetter = 1.8*($centerX + round($radius * sin(deg2rad($angle)))); $screen[$coordinateYOfLetter][$coordinateXOfLetter] = $letters[$i]; $angle -= $angleBetweenLetters; } foreach ($screen as $value) { foreach ($value as $a) { echo $a; } echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 28
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 71
Branch analysis from position: 71
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 40
Branch analysis from position: 73
2 jumps found. (Code = 77) Position 1 = 74, Position 2 = 82
Branch analysis from position: 74
2 jumps found. (Code = 78) Position 1 = 75, Position 2 = 82
Branch analysis from position: 75
2 jumps found. (Code = 77) Position 1 = 76, Position 2 = 79
Branch analysis from position: 76
2 jumps found. (Code = 78) Position 1 = 77, Position 2 = 79
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 76
Branch analysis from position: 76
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
Branch analysis from position: 79
Branch analysis from position: 82
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 82
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 40
Branch analysis from position: 73
Branch analysis from position: 40
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 28
Branch analysis from position: 38
Branch analysis from position: 28
filename:       /in/3NlN5
function name:  (null)
number of ops:  84
compiled vars:  !0 = $phrase, !1 = $phraseLength, !2 = $letters, !3 = $fromAngle, !4 = $toAngle, !5 = $radius, !6 = $height, !7 = $centerX, !8 = $centerY, !9 = $angle, !10 = $angleBetweenLetters, !11 = $screen, !12 = $y, !13 = $i, !14 = $coordinateYOfLetter, !15 = $coordinateXOfLetter, !16 = $value, !17 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'mb_internal_encoding'
          4        SEND_VAL                                                 'utf-8'
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !0, '%D0%90%D0%91%D0%92%D0%93%D0%94%D0%95%D0%81%D0%96%D0%97%D0%98%D0%99%D0%9A%D0%9B%D0%9C%D0%9D%D0%9E%D0%9F%D0%A0%D0%A1%D0%A2%D0%A3%D0%A4%D0%A5%D0%A6%D0%A7%D0%A8%D0%A9%D0%AA%D0%AB%D0%AC%D0%AD%D0%AE%D0%AF'
    7     7        INIT_FCALL                                               'mb_strlen'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $21     
         10        ASSIGN                                                   !1, $21
    9    11        INIT_FCALL                                               'preg_split'
         12        SEND_VAL                                                 '%2F%2Fu'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $23     
         15        ASSIGN                                                   !2, $23
   11    16        ASSIGN                                                   !3, -80
   12    17        ASSIGN                                                   !4, 260
   13    18        ASSIGN                                                   !5, 12.5
   15    19        ASSIGN                                                   !6, 30
   16    20        ASSIGN                                                   !7, 40
   17    21        ASSIGN                                                   !8, 15
   19    22        ASSIGN                                                   !9, 90
   20    23        DIV                                              ~32     360, !1
         24        ASSIGN                                                   !10, ~32
   22    25        ASSIGN                                                   !11, <array>
   23    26        ASSIGN                                                   !12, 0
         27      > JMP                                                      ->36
   24    28    >   INIT_FCALL                                               'array_fill'
         29        SEND_VAL                                                 0
         30        SEND_VAL                                                 100
         31        SEND_VAL                                                 '+'
         32        DO_ICALL                                         $37     
         33        ASSIGN_DIM                                               !11, !12
         34        OP_DATA                                                  $37
   23    35        PRE_INC                                                  !12
         36    >   IS_SMALLER                                               !12, !1
         37      > JMPNZ                                                    ~39, ->28
   27    38    >   ASSIGN                                                   !13, 0
         39      > JMP                                                      ->71
   29    40    >   INIT_FCALL                                               'round'
         41        INIT_FCALL                                               'cos'
         42        INIT_FCALL                                               'deg2rad'
         43        SEND_VAR                                                 !9
         44        DO_ICALL                                         $41     
         45        SEND_VAR                                                 $41
         46        DO_ICALL                                         $42     
         47        MUL                                              ~43     !5, $42
         48        SEND_VAL                                                 ~43
         49        DO_ICALL                                         $44     
         50        ADD                                              ~45     !8, $44
         51        ASSIGN                                                   !14, ~45
   30    52        INIT_FCALL                                               'round'
         53        INIT_FCALL                                               'sin'
         54        INIT_FCALL                                               'deg2rad'
         55        SEND_VAR                                                 !9
         56        DO_ICALL                                         $47     
         57        SEND_VAR                                                 $47
         58        DO_ICALL                                         $48     
         59        MUL                                              ~49     !5, $48
         60        SEND_VAL                                                 ~49
         61        DO_ICALL                                         $50     
         62        ADD                                              ~51     !7, $50
         63        MUL                                              ~52     ~51, 1.8
         64        ASSIGN                                                   !15, ~52
   32    65        FETCH_DIM_R                                      ~56     !2, !13
         66        FETCH_DIM_W                                      $54     !11, !14
         67        ASSIGN_DIM                                               $54, !15
         68        OP_DATA                                                  ~56
   34    69        ASSIGN_OP                                     2          !9, !10
   27    70        PRE_INC                                                  !13
         71    >   IS_SMALLER_OR_EQUAL                                      !13, !1
         72      > JMPNZ                                                    ~59, ->40
   37    73    > > FE_RESET_R                                       $60     !11, ->82
         74    > > FE_FETCH_R                                               $60, !16, ->82
   38    75    > > FE_RESET_R                                       $61     !16, ->79
         76    > > FE_FETCH_R                                               $61, !17, ->79
   39    77    >   ECHO                                                     !17
   38    78      > JMP                                                      ->76
         79    >   FE_FREE                                                  $61
   41    80        ECHO                                                     '%0A'
   37    81      > JMP                                                      ->74
         82    >   FE_FREE                                                  $60
   42    83      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.08 ms | 1404 KiB | 31 Q