3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = [ "uid", "number", "date", "title", "docFlag", "docTitle", ]; $workArray[0] = "\"20180125_0364\",\"363\",\"25.01.2018\",\"Some long text here\",false,\"\""; $workArray[1] = "\"20180125_0363\",\"364\",\"25.01.2018\",\"Some long text here\",true,\"Some short text here\""; $workArray[2] = "\"20180125_0358\",\"365\",\"25.01.2018\",\"Some long text here\",true,\"Some short text here\""; foreach ($workArray as &$el) { // $el = explode("") $values = str_getcsv($el); $el = array_combine($keys, $values); } var_dump($workArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 126) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Fn2G6
function name:  (null)
number of ops:  24
compiled vars:  !0 = $keys, !1 = $workArray, !2 = $el, !3 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN_DIM                                               !1, 0
          2        OP_DATA                                                  '%2220180125_0364%22%2C%22363%22%2C%2225.01.2018%22%2C%22Some+long+text+here%22%2Cfalse%2C%22%22'
   12     3        ASSIGN_DIM                                               !1, 1
          4        OP_DATA                                                  '%2220180125_0363%22%2C%22364%22%2C%2225.01.2018%22%2C%22Some+long+text+here%22%2Ctrue%2C%22Some+short+text+here%22'
   13     5        ASSIGN_DIM                                               !1, 2
          6        OP_DATA                                                  '%2220180125_0358%22%2C%22365%22%2C%2225.01.2018%22%2C%22Some+long+text+here%22%2Ctrue%2C%22Some+short+text+here%22'
   14     7      > FE_RESET_RW                                      $8      !1, ->19
          8    > > FE_FETCH_RW                                              $8, !2, ->19
   16     9    >   INIT_FCALL                                               'str_getcsv'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
   17    13        INIT_FCALL                                               'array_combine'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !2, $11
   14    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $8
   19    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1012 KiB | 16 Q