3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array(); $row[] = 'a\\"'; $row[] = 'bbb'; $fp = fopen('php://temp', 'w+'); fputcsv($fp, $row); fseek($fp, 0); echo fread($fp, 1024);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AuFUn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $row, !1 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  'a%5C%22'
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'bbb'
    7     5        INIT_FCALL                                               'fopen'
          6        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          7        SEND_VAL                                                 'w%2B'
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    8    10        INIT_FCALL                                               'fputcsv'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'fseek'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 0
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'fread'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 1024
         21        DO_ICALL                                         $9      
         22        ECHO                                                     $9
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.38 ms | 1398 KiB | 22 Q