3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array( 'name' => 'Tanaka', 'skill' => 'A', ), array( 'name' => 'Yamada', 'skill' => 'B', ), array( 'name' => 'SAITO', 'skill' => 'C', ), array( 'name' => 'HIGASHIYAMA', 'skill' => 'D', ), array( 'name' => 'ARAKI', 'skill' => 'E', ), array( 'name' => 'YOSHIDA', 'skill' => 'F', ), ); $count = count($data); $table = call_user_func_array( 'array_merge', array_map( function ($group) { return call_user_func_array( 'array_map', array_merge(array(null), $group) ); }, array_chunk( $data + array_fill( 0, $count + $count % 4, array_fill(0, 2, '&nbsp;') ), 4 ) ) ); print_r($table);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3G9Z
function name:  (null)
number of ops:  34
compiled vars:  !0 = $data, !1 = $count, !2 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   29     1        COUNT                                            ~4      !0
          2        ASSIGN                                                   !1, ~4
   30     3        INIT_FCALL                                               'array_merge'
   32     4        INIT_FCALL                                               'array_map'
   33     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fm3G9Z%3A33%240'
   38     6        SEND_VAL                                                 ~6
   39     7        INIT_FCALL                                               'array_chunk'
   40     8        INIT_FCALL                                               'array_fill'
   41     9        SEND_VAL                                                 0
   42    10        MOD                                              ~7      !1, 4
         11        ADD                                              ~8      !1, ~7
         12        SEND_VAL                                                 ~8
   43    13        INIT_FCALL                                               'array_fill'
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 2
         16        SEND_VAL                                                 '%26nbsp%3B'
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        ADD                                              ~11     !0, $10
         21        SEND_VAL                                                 ~11
   45    22        SEND_VAL                                                 4
         23        DO_ICALL                                         $12     
         24        SEND_VAR                                                 $12
         25        DO_ICALL                                         $13     
         26        SEND_ARRAY                                               $13
         27        CHECK_UNDEF_ARGS                                         
         28        DO_FCALL                                      0  $14     
   30    29        ASSIGN                                                   !2, $14
   49    30        INIT_FCALL                                               'print_r'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fm3G9Z%3A33%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m3G9Z
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $group
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   RECV                                             !0      
   34     1        INIT_FCALL                                               'array_map'
   36     2        INIT_FCALL                                               'array_merge'
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_ARRAY                                               $1
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0  $2      
          9      > RETURN                                                   $2
   38    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fm3G9Z%3A33%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.83 ms | 1400 KiB | 23 Q