3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_getcsv('"\"test\""'); echo $x[0], "\n"; $x = str_getcsv('"""test"""'); echo $x[0], "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9FcDI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_getcsv'
          1        SEND_VAL                                                 '%22%5C%22test%5C%22%22'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
          4        FETCH_DIM_R                                      ~3      !0, 0
          5        ECHO                                                     ~3
          6        ECHO                                                     '%0A'
    4     7        INIT_FCALL                                               'str_getcsv'
          8        SEND_VAL                                                 '%22%22%22test%22%22%22'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
         11        FETCH_DIM_R                                      ~6      !0, 0
         12        ECHO                                                     ~6
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.99 ms | 1004 KiB | 14 Q