3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [21, 231, 12121, 3332, 444444, 2212, 1, 234, 5523, 312]; $count = count($data); $length = max(array_map('strlen', $data)); foreach ($data as $k => $v) { $diff = $length - strlen($v); for ($i = 0; $i < $diff; $i++) { echo '*'; } if (($k + 1) % 4 == 0) { echo $v . "\n"; } else { echo $v; } echo '|'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 33
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 33
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 19
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 19
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/EZcJ9
function name:  (null)
number of ops:  35
compiled vars:  !0 = $data, !1 = $count, !2 = $length, !3 = $v, !4 = $k, !5 = $diff, !6 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        COUNT                                            ~8      !0
          2        ASSIGN                                                   !1, ~8
    6     3        INIT_FCALL                                               'max'
          4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'strlen'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $10     
          8        SEND_VAR                                                 $10
          9        DO_ICALL                                         $11     
         10        ASSIGN                                                   !2, $11
    8    11      > FE_RESET_R                                       $13     !0, ->33
         12    > > FE_FETCH_R                                       ~14     $13, !3, ->33
         13    >   ASSIGN                                                   !4, ~14
    9    14        STRLEN                                           ~16     !3
         15        SUB                                              ~17     !2, ~16
         16        ASSIGN                                                   !5, ~17
   10    17        ASSIGN                                                   !6, 0
         18      > JMP                                                      ->21
   11    19    >   ECHO                                                     '%2A'
   10    20        PRE_INC                                                  !6
         21    >   IS_SMALLER                                               !6, !5
         22      > JMPNZ                                                    ~21, ->19
   15    23    >   ADD                                              ~22     !4, 1
         24        MOD                                              ~23     ~22, 4
         25        IS_EQUAL                                                 ~23, 0
         26      > JMPZ                                                     ~24, ->30
   16    27    >   CONCAT                                           ~25     !3, '%0A'
         28        ECHO                                                     ~25
         29      > JMP                                                      ->31
   18    30    >   ECHO                                                     !3
   21    31    >   ECHO                                                     '%7C'
    8    32      > JMP                                                      ->12
         33    >   FE_FREE                                                  $13
   22    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.9 ms | 1400 KiB | 17 Q