3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "ZpglnRxqenU"; $output = []; for ($i = 0;$i<strlen($str);$i++) { $output[] = str_repeat($str[$i], $i+1); } $output = ucwords(strtolower(implode('-',$output)),"-"); echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
filename:       /in/OoukZ
function name:  (null)
number of ops:  30
compiled vars:  !0 = $str, !1 = $output, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ZpglnRxqenU'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->13
    6     4    >   INIT_FCALL                                               'str_repeat'
          5        FETCH_DIM_R                                      ~7      !0, !2
          6        SEND_VAL                                                 ~7
          7        ADD                                              ~8      !2, 1
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                         $9      
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  $9
    5    12        PRE_INC                                                  !2
         13    >   STRLEN                                           ~11     !0
         14        IS_SMALLER                                               !2, ~11
         15      > JMPNZ                                                    ~12, ->4
    8    16    >   INIT_FCALL                                               'ucwords'
         17        INIT_FCALL                                               'strtolower'
         18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 '-'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        SEND_VAR                                                 $14
         25        SEND_VAL                                                 '-'
         26        DO_ICALL                                         $15     
         27        ASSIGN                                                   !1, $15
    9    28        ECHO                                                     !1
   10    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
273.72 ms | 1014 KiB | 17 Q