3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = range(1,31); $i = 3; $j = 2; $str =""; for($k=0;$k<end($days);){ $str .= "<b>" . implode("</b> <b>", array_slice($days, $k,$i)) ."</b> " . implode(" ", array_slice($days, $k+$i, $j)). " "; $k=$k+$i+$j; } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 10
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 10
Branch analysis from position: 42
Branch analysis from position: 10
filename:       /in/CpoVb
function name:  (null)
number of ops:  44
compiled vars:  !0 = $days, !1 = $i, !2 = $j, !3 = $str, !4 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 31
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        ASSIGN                                                   !1, 3
    5     6        ASSIGN                                                   !2, 2
    6     7        ASSIGN                                                   !3, ''
    7     8        ASSIGN                                                   !4, 0
          9      > JMP                                                      ->37
    8    10    >   INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%3C%2Fb%3E+%3Cb%3E'
         12        INIT_FCALL                                               'array_slice'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !4
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                         $12     
         19        CONCAT                                           ~13     '%3Cb%3E', $12
         20        CONCAT                                           ~14     ~13, '%3C%2Fb%3E+'
         21        INIT_FCALL                                               'implode'
         22        SEND_VAL                                                 '+'
         23        INIT_FCALL                                               'array_slice'
         24        SEND_VAR                                                 !0
         25        ADD                                              ~15     !4, !1
         26        SEND_VAL                                                 ~15
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                         $16     
         29        SEND_VAR                                                 $16
         30        DO_ICALL                                         $17     
         31        CONCAT                                           ~18     ~14, $17
         32        CONCAT                                           ~19     ~18, '+'
         33        ASSIGN_OP                                     8          !3, ~19
    9    34        ADD                                              ~21     !4, !1
         35        ADD                                              ~22     ~21, !2
         36        ASSIGN                                                   !4, ~22
    7    37    >   INIT_FCALL                                               'end'
         38        SEND_REF                                                 !0
         39        DO_ICALL                                         $24     
         40        IS_SMALLER                                               !4, $24
         41      > JMPNZ                                                    ~25, ->10
   11    42    >   ECHO                                                     !3
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 1405 KiB | 21 Q