3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s2=<<<EOD Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""","",5000.00 1996,Jeep,Grand Cherokee,"MUST SELL! ""TODAY"" air, moon roof, loaded",4799.00 EOD; $lines = explode("\n", $s2); $lines[4] .= $lines[5]; unset($lines[5]); foreach ($lines as $line) { print_r(str_getcsv($line)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/Q5IKu
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s2, !1 = $lines, !2 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Year%2CMake%2CModel%2CDescription%2CPrice%0A1997%2CFord%2CE350%2C%22ac%2C+abs%2C+moon%22%2C3000.00%0A1999%2CChevy%2C%22Venture+%22%22Extended+Edition%22%22%22%2C%22%22%2C4900.00%0A1999%2CChevy%2C%22Venture+%22%22Extended+Edition%2C+Very+Large%22%22%22%2C%22%22%2C5000.00%0A1996%2CJeep%2CGrand+Cherokee%2C%22MUST+SELL%21+%22%22TODAY%22%22%0Aair%2C+moon+roof%2C+loaded%22%2C4799.00'
   12     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
   13     6        FETCH_DIM_R                                      ~7      !1, 5
          7        ASSIGN_DIM_OP                .=               8          !1, 4
          8        OP_DATA                                                  ~7
   14     9        UNSET_DIM                                                !1, 5
   15    10      > FE_RESET_R                                       $8      !1, ->19
         11    > > FE_FETCH_R                                               $8, !2, ->19
   16    12    >   INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'str_getcsv'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
   15    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $8
   17    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1395 KiB | 19 Q