3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phrase = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; $phraseLength = mb_strlen($phrase); $fromAngle = -80; $toAngle = 260; $radius = 12.5; $height = 30; $centerX = 40; $centerY = 15; $screen = array(); for ($y = 0; $y < $height; $y++) { $screen[$y] = array_fill(0, 80, " "); } $degree = (abs($fromAngle) + $toAngle) / $phraseLength; $curDegree = round($degree); for ($i = 0; $i < $phraseLength; $i++) { $x = round($radius * sin(deg2rad($curDegree)) * 2.1); $y = round($radius * cos(deg2rad($curDegree))); $curDegree += $degree; $screen[$centerY + $y][$centerX + $x] = mb_substr($phrase, $i, 1);; } foreach (array_reverse($screen) as $string) { echo implode("", $string) . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 14
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 71
Branch analysis from position: 71
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 36
Branch analysis from position: 73
2 jumps found. (Code = 77) Position 1 = 77, Position 2 = 85
Branch analysis from position: 77
2 jumps found. (Code = 78) Position 1 = 78, Position 2 = 85
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
Branch analysis from position: 85
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 85
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 73, Position 2 = 36
Branch analysis from position: 73
Branch analysis from position: 36
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 14
Branch analysis from position: 24
Branch analysis from position: 14
filename:       /in/BEGtc
function name:  (null)
number of ops:  87
compiled vars:  !0 = $phrase, !1 = $phraseLength, !2 = $fromAngle, !3 = $toAngle, !4 = $radius, !5 = $height, !6 = $centerX, !7 = $centerY, !8 = $screen, !9 = $y, !10 = $degree, !11 = $curDegree, !12 = $i, !13 = $x, !14 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   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'
    4     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $16     
          4        ASSIGN                                                   !1, $16
    6     5        ASSIGN                                                   !2, -80
    7     6        ASSIGN                                                   !3, 260
    8     7        ASSIGN                                                   !4, 12.5
   10     8        ASSIGN                                                   !5, 30
   11     9        ASSIGN                                                   !6, 40
   12    10        ASSIGN                                                   !7, 15
   14    11        ASSIGN                                                   !8, <array>
   16    12        ASSIGN                                                   !9, 0
         13      > JMP                                                      ->22
   17    14    >   INIT_FCALL                                               'array_fill'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 80
         17        SEND_VAL                                                 '+'
         18        DO_ICALL                                         $27     
         19        ASSIGN_DIM                                               !8, !9
         20        OP_DATA                                                  $27
   16    21        PRE_INC                                                  !9
         22    >   IS_SMALLER                                               !9, !5
         23      > JMPNZ                                                    ~29, ->14
   20    24    >   INIT_FCALL                                               'abs'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $30     
         27        ADD                                              ~31     $30, !3
         28        DIV                                              ~32     ~31, !1
         29        ASSIGN                                                   !10, ~32
   22    30        INIT_FCALL                                               'round'
         31        SEND_VAR                                                 !10
         32        DO_ICALL                                         $34     
         33        ASSIGN                                                   !11, $34
   23    34        ASSIGN                                                   !12, 0
         35      > JMP                                                      ->71
   24    36    >   INIT_FCALL                                               'round'
         37        INIT_FCALL                                               'sin'
         38        INIT_FCALL                                               'deg2rad'
         39        SEND_VAR                                                 !11
         40        DO_ICALL                                         $37     
         41        SEND_VAR                                                 $37
         42        DO_ICALL                                         $38     
         43        MUL                                              ~39     !4, $38
         44        MUL                                              ~40     ~39, 2.1
         45        SEND_VAL                                                 ~40
         46        DO_ICALL                                         $41     
         47        ASSIGN                                                   !13, $41
   25    48        INIT_FCALL                                               'round'
         49        INIT_FCALL                                               'cos'
         50        INIT_FCALL                                               'deg2rad'
         51        SEND_VAR                                                 !11
         52        DO_ICALL                                         $43     
         53        SEND_VAR                                                 $43
         54        DO_ICALL                                         $44     
         55        MUL                                              ~45     !4, $44
         56        SEND_VAL                                                 ~45
         57        DO_ICALL                                         $46     
         58        ASSIGN                                                   !9, $46
   26    59        ASSIGN_OP                                     1          !11, !10
   27    60        ADD                                              ~49     !7, !9
         61        ADD                                              ~51     !6, !13
         62        INIT_FCALL                                               'mb_substr'
         63        SEND_VAR                                                 !0
         64        SEND_VAR                                                 !12
         65        SEND_VAL                                                 1
         66        DO_ICALL                                         $53     
         67        FETCH_DIM_W                                      $50     !8, ~49
         68        ASSIGN_DIM                                               $50, ~51
         69        OP_DATA                                                  $53
   23    70        PRE_INC                                                  !12
         71    >   IS_SMALLER                                               !12, !1
         72      > JMPNZ                                                    ~55, ->36
   30    73    >   INIT_FCALL                                               'array_reverse'
         74        SEND_VAR                                                 !8
         75        DO_ICALL                                         $56     
         76      > FE_RESET_R                                       $57     $56, ->85
         77    > > FE_FETCH_R                                               $57, !14, ->85
   31    78    >   INIT_FCALL                                               'implode'
         79        SEND_VAL                                                 ''
         80        SEND_VAR                                                 !14
         81        DO_ICALL                                         $58     
         82        CONCAT                                           ~59     $58, '%0A'
         83        ECHO                                                     ~59
   30    84      > JMP                                                      ->77
         85    >   FE_FREE                                                  $57
   32    86      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.75 ms | 1409 KiB | 33 Q