3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '1|"two"|"|"|5'; if( ! $fh = fopen('php://temp', 'w+') ) { exit('nope'); } fputs($fh, $data); rewind($fh); var_dump(fgetcsv($fh, 4096, "|"));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hhITo
function name:  (null)
number of ops:  25
compiled vars:  !0 = $data, !1 = $fh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%7C%22two%22%7C%22%7C%22%7C5'
    5     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          3        SEND_VAL                                                 'w%2B'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                           ~4      !1, $3
          6        BOOL_NOT                                         ~5      ~4
          7      > JMPZ                                                     ~5, ->9
    6     8    > > EXIT                                                     'nope'
    9     9    >   INIT_FCALL                                               'fputs'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'rewind'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   12    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'fgetcsv'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 4096
         20        SEND_VAL                                                 '%7C'
         21        DO_ICALL                                         $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.6 ms | 1395 KiB | 23 Q