3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'a,"b"",""c","d|",|"e||"'; var_dump( str_getcsv($x, ',', '"', '|'), str_getcsv($x, ',', '"', '"') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lgrDY
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%2C%22b%22%22%2C%22%22c%22%2C%22d%7C%22%2C%7C%22e%7C%7C%22'
    5     1        INIT_FCALL                                               'var_dump'
    6     2        INIT_FCALL                                               'str_getcsv'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAL                                                 '%22'
          6        SEND_VAL                                                 '%7C'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
    7     9        INIT_FCALL                                               'str_getcsv'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '%2C'
         12        SEND_VAL                                                 '%22'
         13        SEND_VAL                                                 '%22'
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.73 ms | 1399 KiB | 17 Q