3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letters = implode(" ", range('A', 'Z')); $let_arr = explode(" ", $letters); $str = ""; while (strlen($str) != (strlen($letters)-(count($let_arr)*2))+4) { // while strlen($str) != (51 - 52 + 4)) { // while strlen($str) != 3) { $tr = strlen($str); if ($tr > 0) { if ($tr > 1) { $str .= $let_arr[0]; } else { $str .= $let_arr[12]; } } else { $str .= $let_arr[8]; } } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 16
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 16
Branch analysis from position: 38
Branch analysis from position: 16
filename:       /in/IOUeY
function name:  (null)
number of ops:  40
compiled vars:  !0 = $letters, !1 = $let_arr, !2 = $str, !3 = $tr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '+'
          2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'A'
          4        SEND_VAL                                                 'Z'
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
    3     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    4    14        ASSIGN                                                   !2, ''
    6    15      > JMP                                                      ->30
    9    16    >   STRLEN                                           ~10     !2
         17        ASSIGN                                                   !3, ~10
   10    18        IS_SMALLER                                               0, !3
         19      > JMPZ                                                     ~12, ->28
   11    20    >   IS_SMALLER                                               1, !3
         21      > JMPZ                                                     ~13, ->25
   12    22    >   FETCH_DIM_R                                      ~14     !1, 0
         23        ASSIGN_OP                                     8          !2, ~14
   11    24      > JMP                                                      ->27
   14    25    >   FETCH_DIM_R                                      ~16     !1, 12
         26        ASSIGN_OP                                     8          !2, ~16
   10    27    > > JMP                                                      ->30
   17    28    >   FETCH_DIM_R                                      ~18     !1, 8
         29        ASSIGN_OP                                     8          !2, ~18
    6    30    >   STRLEN                                           ~20     !2
         31        STRLEN                                           ~21     !0
         32        COUNT                                            ~22     !1
         33        MUL                                              ~23     ~22, 2
         34        SUB                                              ~24     ~21, ~23
         35        ADD                                              ~25     ~24, 4
         36        IS_NOT_EQUAL                                             ~20, ~25
         37      > JMPNZ                                                    ~26, ->16
   21    38    >   ECHO                                                     !2
   22    39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.86 ms | 1444 KiB | 16 Q