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] .= "\n$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 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/D8Mqt
function name:  (null)
number of ops:  23
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        NOP                                                      
          7        FETCH_DIM_R                                      ~7      !1, 5
          8        FAST_CONCAT                                      ~8      '%0A', ~7
          9        ASSIGN_DIM_OP                .=               8          !1, 4
         10        OP_DATA                                                  ~8
   14    11        UNSET_DIM                                                !1, 5
   15    12      > FE_RESET_R                                       $9      !1, ->21
         13    > > FE_FETCH_R                                               $9, !2, ->21
   16    14    >   INIT_FCALL                                               'print_r'
         15        INIT_FCALL                                               'str_getcsv'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                                 
   15    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $9
   17    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.24 ms | 1387 KiB | 19 Q