3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = new SplFileObject('php://tmp', 'wb'); $csv->setCsvControl(',', '"', '\\'); $csv->fputcsv(['Escape my " character.', 'Field 2']); $csv->fpassthru();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EkRgq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $csv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplFileObject'
          1        SEND_VAL_EX                                              'php%3A%2F%2Ftmp'
          2        SEND_VAL_EX                                              'wb'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    4     5        INIT_METHOD_CALL                                         !0, 'setCsvControl'
          6        SEND_VAL_EX                                              '%2C'
          7        SEND_VAL_EX                                              '%22'
          8        SEND_VAL_EX                                              '%5C'
          9        DO_FCALL                                      0          
    5    10        INIT_METHOD_CALL                                         !0, 'fputcsv'
         11        SEND_VAL_EX                                              <array>
         12        DO_FCALL                                      0          
    7    13        INIT_METHOD_CALL                                         !0, 'fpassthru'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.74 ms | 1393 KiB | 13 Q