3v4l.org

run code in 300+ PHP versions simultaneously
<?php $modulecounter = 0; $res = range(1,30); $column = ''; if(count($res) > 0){ $divideCount = ceil(count($res)/3); $results = array_chunk($res ,$divideCount); foreach($results as $result){ $column .= '<div class="col-lg-6">'; foreach($result as $res){ $modulecounter++; $moduleid = "m". $modulecounter; $column .= '<div class="col-lg-auto"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input modulerights" id="'. $moduleid .'"> <label class="custom-control-label" for="'. $moduleid .'">'. $res .'</label> </div> </div>'; } $column .= '</div>'; } } echo $column;

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 41
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 40
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 40
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 37
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 41
filename:       /in/TlJT2
function name:  (null)
number of ops:  43
compiled vars:  !0 = $modulecounter, !1 = $res, !2 = $column, !3 = $divideCount, !4 = $results, !5 = $result, !6 = $moduleid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 30
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !1, $8
    4     6        ASSIGN                                                   !2, ''
    5     7        COUNT                                            ~11     !1
          8        IS_SMALLER                                               0, ~11
          9      > JMPZ                                                     ~12, ->41
    6    10    >   INIT_FCALL                                               'ceil'
         11        COUNT                                            ~13     !1
         12        DIV                                              ~14     ~13, 3
         13        SEND_VAL                                                 ~14
         14        DO_ICALL                                         $15     
         15        ASSIGN                                                   !3, $15
    8    16        INIT_FCALL                                               'array_chunk'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $17     
         20        ASSIGN                                                   !4, $17
    9    21      > FE_RESET_R                                       $19     !4, ->40
         22    > > FE_FETCH_R                                               $19, !5, ->40
   10    23    >   ASSIGN_OP                                     8          !2, '%3Cdiv+class%3D%22col-lg-6%22%3E'
   11    24      > FE_RESET_R                                       $21     !5, ->37
         25    > > FE_FETCH_R                                               $21, !1, ->37
   12    26    >   PRE_INC                                                  !0
   13    27        CONCAT                                           ~23     'm', !0
         28        ASSIGN                                                   !6, ~23
   17    29        CONCAT                                           ~25     '%3Cdiv+class%3D%22col-lg-auto%22%3E%0A%09%09%09%09%3Cdiv+class%3D%22custom-control+custom-checkbox%22%3E%0A%09%09%09%09%09%3Cinput+type%3D%22checkbox%22+class%3D%22custom-control-input+modulerights%22+id%3D%22', !6
         30        CONCAT                                           ~26     ~25, '%22%3E%0A%09%09%09%09%09%3Clabel+class%3D%22custom-control-label%22+for%3D%22'
   18    31        CONCAT                                           ~27     ~26, !6
         32        CONCAT                                           ~28     ~27, '%22%3E'
         33        CONCAT                                           ~29     ~28, !1
         34        CONCAT                                           ~30     ~29, '%3C%2Flabel%3E%0A%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%3C%2Fdiv%3E'
         35        ASSIGN_OP                                     8          !2, ~30
   11    36      > JMP                                                      ->25
         37    >   FE_FREE                                                  $21
   23    38        ASSIGN_OP                                     8          !2, '%3C%2Fdiv%3E'
    9    39      > JMP                                                      ->22
         40    >   FE_FREE                                                  $19
   28    41    >   ECHO                                                     !2
   29    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
226.54 ms | 1007 KiB | 16 Q