3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( array('malaria', 'pneumonia', 'HIV', 'malnutrion'), array('allfields', 'title', 'keywords', 'abstract'), array('and', 'or', 'or', 'or'), ); $new_array = array(); $count = count($array[0]); for ($i = 0; $i < $count; $i++) { $new_array[] = '(' . implode(',', array_column($array, $i)) . ')'; } echo implode(', ', $new_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 7
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/duKe4
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $new_array, !2 = $count, !3 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    9     1        ASSIGN                                                       !1, <array>
   10     2        FETCH_DIM_R                                          ~6      !0, 0
          3        COUNT                                                ~7      ~6
          4        ASSIGN                                                       !2, ~7
   11     5        ASSIGN                                                       !3, 0
          6      > JMP                                                          ->17
   12     7    >   INIT_FCALL                                                   'array_column'
          8        SEND_VAR                                                     !0
          9        SEND_VAR                                                     !3
         10        DO_ICALL                                             $11     
         11        FRAMELESS_ICALL_2                implode             ~12     '%2C', $11
         12        CONCAT                                               ~13     '%28', ~12
         13        CONCAT                                               ~14     ~13, '%29'
         14        ASSIGN_DIM                                                   !1
         15        OP_DATA                                                      ~14
   11    16        PRE_INC                                                      !3
         17    >   IS_SMALLER                                                   !3, !2
         18      > JMPNZ                                                        ~16, ->7
   15    19    >   FRAMELESS_ICALL_2                implode             ~17     '%2C+', !1
         20        ECHO                                                         ~17
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.24 ms | 2046 KiB | 15 Q