3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'blah"'; fputcsv(STDOUT, [$str,$str]); $csv = '"blah"""'; var_dump(str_getcsv($csv));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QSHfX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $csv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'blah%22'
    4     1        INIT_FCALL                                               'fputcsv'
          2        FETCH_CONSTANT                                   ~3      'STDOUT'
          3        SEND_VAL                                                 ~3
          4        INIT_ARRAY                                       ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    6     8        ASSIGN                                                   !1, '%22blah%22%22%22'
    7     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'str_getcsv'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.6 ms | 1394 KiB | 19 Q