3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '#ORGNR "123" 1 #ACCOUNT 1010 "Kassa" #ACCOUNT 1050 "Bank" #IB -1 1010 1923.15 #IB 1 1050 201.42'; $arr = explode("\n", $str); // you use file but it's the same thing foreach($arr as &$val){ $val = preg_split("/\s+/", $val); } var_dump($arr);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/9hPVd
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $arr, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23ORGNR+++%22123%22+1%0A%23ACCOUNT++++1010++++%22Kassa%22%0A%23ACCOUNT++++1050++++%22Bank%22%0A%23IB+++++-1+1010++++++++1923.15%0A%23IB+++++1+1050+++++++++201.42'
    9     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   11     6      > FE_RESET_RW                                      $6      !1, ->14
          7    > > FE_FETCH_RW                                              $6, !2, ->14
   12     8    >   INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
   11    13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $6
   15    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.9 ms | 1395 KiB | 19 Q