3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = array( array( "id", "int(10) unsigned", "NO", "PRI", "auto_increment" ), array( "title", "varchar(32)", "NO" ), array( "author", "varchar(32)", "NO" ), array( "category", "tinyint(3) unsigned", "NO" ), array( "date", "datetime", "NO" ), array( "post_ip", "int(10) unsigned", "NO" ), array( "approved_by", "varchar(32)", "NO" ), array( "text", "text", "NO" ) ); $cols = array(); foreach ($d as $row) { $id = 0; foreach($row as $col) { if (!isset($cols[$id])) $cols[$id] = 0; if ($cols[$id] < strlen($col)) { $cols[$id] = strlen($col); } $id++; } } print_R($cols); /* id # int(10) unsigned # NO # PRI # auto_increment # [19:44] <teehee> title # varchar(32) # NO # [19:44] <teehee> author # varchar(32) # NO # [19:44] <teehee> category # tinyint(3) unsigned # NO # [19:44] <teehee> date # datetime # NO # [19:44] <teehee> post_ip # int(10) unsigned # NO # [19:44] <teehee> approved_by # varchar(32) # YES # [19:44] <teehee> text # text # NO # */
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
Branch analysis from position: 12
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/1IZd8
function name:  (null)
number of ops:  28
compiled vars:  !0 = $d, !1 = $cols, !2 = $row, !3 = $id, !4 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, <array>
   23     2      > FE_RESET_R                                       $7      !0, ->23
          3    > > FE_FETCH_R                                               $7, !2, ->23
   24     4    >   ASSIGN                                                   !3, 0
   25     5      > FE_RESET_R                                       $9      !2, ->21
          6    > > FE_FETCH_R                                               $9, !4, ->21
   26     7    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~10     !1, !3
          8        BOOL_NOT                                         ~11     ~10
          9      > JMPZ                                                     ~11, ->12
         10    >   ASSIGN_DIM                                               !1, !3
         11        OP_DATA                                                  0
   27    12    >   FETCH_DIM_R                                      ~13     !1, !3
         13        STRLEN                                           ~14     !4
         14        IS_SMALLER                                               ~13, ~14
         15      > JMPZ                                                     ~15, ->19
   28    16    >   STRLEN                                           ~17     !4
         17        ASSIGN_DIM                                               !1, !3
         18        OP_DATA                                                  ~17
   30    19    >   PRE_INC                                                  !3
   25    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $9
   23    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $7
   33    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   47    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1396 KiB | 15 Q