3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fh = fopen('php://memory', 'rw'); fputs($fh, 'Some,Test,"is"thisvalid,or,not'); rewind($fh); print_r(fgetcsv($fh));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFvvv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $fh
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                                                 'rw'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        INIT_FCALL                                               'fputs'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'Some%2CTest%2C%22is%22thisvalid%2Cor%2Cnot'
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'rewind'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'fgetcsv'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.01 ms | 1013 KiB | 18 Q