3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = '"Item no.";"Product name English";"Description English";"Specification English";"System requirements English";"Package content English";"Category 1 English";"Category 2 English";"Category 3 English";"Price";"EUP";"EAN";"Delivery status";"Stock";"Manufacturer";"Main picture";"Additional image 1";"delivery date";"Data sheet English";'. "\n"; $stream = fopen('php://memory', 'r+'); fwrite($stream, $line); rewind($stream); $array = fgetcsv($stream, 1000, ';'); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOIkZ
function name:  (null)
number of ops:  23
compiled vars:  !0 = $line, !1 = $stream, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%22Item+no.%22%3B%22Product+name+English%22%3B%22Description+English%22%3B%22Specification+English%22%3B%22System+requirements+English%22%3B%22Package+content+English%22%3B%22Category+1+English%22%3B%22Category+2+English%22%3B%22Category+3+English%22%3B%22Price%22%3B%22EUP%22%3B%22EAN%22%3B%22Delivery+status%22%3B%22Stock%22%3B%22Manufacturer%22%3B%22Main+picture%22%3B%22Additional+image+1%22%3B%22delivery+date%22%3B%22Data+sheet+English%22%3B%0A'
    5     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          3        SEND_VAL                                                 'r%2B'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'fwrite'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'rewind'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'fgetcsv'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 1000
         16        SEND_VAL                                                 '%3B'
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !2, $8
    9    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.08 ms | 1395 KiB | 23 Q