3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '#PROGRAM "Accounting company" 98.2 #GENERATED 2020715 "SE"'; $data = explode("\n", $str); foreach($data as &$value){ $value = preg_split("/\"[^\"]*\"(*SKIP)(*FAIL)|\h+/", $value, -1, PREG_SPLIT_NO_EMPTY); } print_r($data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 126) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/W8mPn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $data, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23PROGRAM+++%22Accounting+company%22++++98.2%0A+%23GENERATED+++++2020715+%22SE%22'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   10     6      > FE_RESET_RW                                      $6      !1, ->16
          7    > > FE_FETCH_RW                                              $6, !2, ->16
   11     8    >   INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%22%5B%5E%22%5D%2A%22%28%2ASKIP%29%28%2AFAIL%29%7C%5Ch%2B%2F'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 -1
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
   10    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $6
   14    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.2 ms | 1012 KiB | 16 Q