3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fileContents = <<<EOD "quote \"testing\"","" "quote ""testing""","" "quote \,testing\,","" EOD; $handle = fopen('php://memory', 'w'); fwrite($handle, $fileContents); fseek($handle, 0); while(($test = fgetcsv($handle)) !== false) { print_r($test); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 15
Branch analysis from position: 24
Branch analysis from position: 15
filename:       /in/ZRbQa
function name:  (null)
number of ops:  25
compiled vars:  !0 = $fileContents, !1 = $handle, !2 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%22quote+%5C%22testing%5C%22%22%2C%22%22%0A%22quote+%22%22testing%22%22%22%2C%22%22%0A%22quote+%5C%2Ctesting%5C%2C%22%2C%22%22'
    9     1        INIT_FCALL                                                   'fopen'
          2        SEND_VAL                                                     'php%3A%2F%2Fmemory'
          3        SEND_VAL                                                     'w'
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
   10     6        INIT_FCALL                                                   'fwrite'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                                     
   11    10        INIT_FCALL                                                   'fseek'
         11        SEND_VAR                                                     !1
         12        SEND_VAL                                                     0
         13        DO_ICALL                                                     
   13    14      > JMP                                                          ->18
   15    15    >   INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                                     
   13    18    >   INIT_FCALL                                                   'fgetcsv'
         19        SEND_VAR                                                     !1
         20        DO_ICALL                                             $9      
         21        ASSIGN                                               ~10     !2, $9
         22        TYPE_CHECK                                      1018          ~10
         23      > JMPNZ                                                        ~11, ->15
   16    24    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.81 ms | 3937 KiB | 18 Q