3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = fopen("php://memory", "w+"); fwrite($s, "\",bar"); rewind($s); var_dump(fgetcsv($s)); fclose($s); $s = fopen("php://memory", "w+"); fwrite($s, "\",bar\n"); rewind($s); var_dump(fgetcsv($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VHrCH
function name:  (null)
number of ops:  40
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          2        SEND_VAL                                                 'w%2B'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%22%2Cbar'
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'rewind'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'fgetcsv'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'fclose'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'fopen'
         22        SEND_VAL                                                 'php%3A%2F%2Fmemory'
         23        SEND_VAL                                                 'w%2B'
         24        DO_ICALL                                         $8      
         25        ASSIGN                                                   !0, $8
    9    26        INIT_FCALL                                               'fwrite'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 '%22%2Cbar%0A'
         29        DO_ICALL                                                 
   10    30        INIT_FCALL                                               'rewind'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
   11    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'fgetcsv'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                         $12     
         37        SEND_VAR                                                 $12
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
317.11 ms | 1396 KiB | 26 Q