3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s='1234 12345 12345'; $lenght = strlen($s); $limit =7; $r=''; $m=1; for($i=1;$i<$lenght;$i++){ $curr = $s[$i]; if ($i>=$limit*$m && $curr ==' '){ $curr = '<br />'; $m++; } $r.=$curr; } echo $r;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
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 = 18
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
Branch analysis from position: 8
Branch analysis from position: 18
Branch analysis from position: 15
filename:       /in/nLDnh
function name:  (null)
number of ops:  24
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, '1234+12345+12345'
    5     1        STRLEN                                           ~8      !0
          2        ASSIGN                                                   !1, ~8
    6     3        ASSIGN                                                   !2, 7
    8     4        ASSIGN                                                   !3, ''
    9     5        ASSIGN                                                   !4, 1
   10     6        ASSIGN                                                   !5, 1
          7      > JMP                                                      ->20
   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, ->18
   16    16    >   ASSIGN                                                   !6, '%3Cbr+%2F%3E'
   17    17        PRE_INC                                                  !4
   20    18    >   ASSIGN_OP                                     8          !3, !6
   10    19        PRE_INC                                                  !5
         20    >   IS_SMALLER                                               !5, !1
         21      > JMPNZ                                                    ~23, ->8
   26    22    >   ECHO                                                     !3
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.56 ms | 1394 KiB | 13 Q