3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s='third option showing that you haven"t understood anything at all'; $lenght = strlen($s); $limit =20; $r=''; $m=1; for($i=1;$i<$lenght;$i++){ $curr = $s[$i]; if ($i>=$limit*$m && $curr ==' '){ $curr = '<br />'.$i; $m++; } $r.=$curr; } echo $r;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
Branch analysis from position: 8
Branch analysis from position: 19
Branch analysis from position: 15
filename:       /in/biVYU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $s, !1 = $lenght, !2 = $limit, !3 = $r, !4 = $m, !5 = $i, !6 = $curr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'third+option+showing+that+you+haven%22t+understood+anything+at+all'
    5     1        STRLEN                                           ~8      !0
          2        ASSIGN                                                   !1, ~8
    6     3        ASSIGN                                                   !2, 20
    8     4        ASSIGN                                                   !3, ''
    9     5        ASSIGN                                                   !4, 1
   10     6        ASSIGN                                                   !5, 1
          7      > JMP                                                      ->21
   12     8    >   FETCH_DIM_R                                      ~14     !0, !5
          9        ASSIGN                                                   !6, ~14
   15    10        MUL                                              ~16     !2, !4
         11        IS_SMALLER_OR_EQUAL                              ~17     ~16, !5
         12      > JMPZ_EX                                          ~17     ~17, ->15
         13    >   IS_EQUAL                                         ~18     !6, '+'
         14        BOOL                                             ~17     ~18
         15    > > JMPZ                                                     ~17, ->19
   16    16    >   CONCAT                                           ~19     '%3Cbr+%2F%3E', !5
         17        ASSIGN                                                   !6, ~19
   17    18        PRE_INC                                                  !4
   20    19    >   ASSIGN_OP                                     8          !3, !6
   10    20        PRE_INC                                                  !5
         21    >   IS_SMALLER                                               !5, !1
         22      > JMPNZ                                                    ~24, ->8
   26    23    >   ECHO                                                     !3
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.66 ms | 1395 KiB | 13 Q