3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = '"Item no.";"Product name English";"Description English"'. "\n"; $stream = fopen('php://memory', 'r+'); fwrite($stream, $line); rewind($stream); $array = fgetcsv($stream, 0, ';'); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rtVcP
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%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                                                 0
         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:
173.93 ms | 1395 KiB | 23 Q