3v4l.org

run code in 300+ PHP versions simultaneously
<pre> <?php $csv = <<<CSV "item1", "single line field" "item2", "multi line field" "item3", "single line field" CSV; $csvDataURI = 'data:text/plain;base64,'.base64_encode( $csv ); $handle = fopen( $csvDataURI, 'r' ); while ( $line = fgetcsv($handle) ){ print_r( $line ); } fclose( $handle ); ?> </pre>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 13
Branch analysis from position: 21
Branch analysis from position: 13
filename:       /in/sb0Cq
function name:  (null)
number of ops:  26
compiled vars:  !0 = $csv, !1 = $csvDataURI, !2 = $handle, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E%0A'
    4     1        ASSIGN                                                   !0, '%09%22item1%22%2C+%22single+line+field%22%0A%09%22item2%22%2C+%22multi%0A%09line%0A%09field%22%0A%09%22item3%22%2C+%22single+line+field%22'
   12     2        INIT_FCALL                                               'base64_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        CONCAT                                           ~6      'data%3Atext%2Fplain%3Bbase64%2C', $5
          6        ASSIGN                                                   !1, ~6
   14     7        INIT_FCALL                                               'fopen'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'r'
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
   16    12      > JMP                                                      ->16
   18    13    >   INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
   16    16    >   INIT_FCALL                                               'fgetcsv'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $11     
         19        ASSIGN                                           ~12     !3, $11
         20      > JMPNZ                                                    ~12, ->13
   21    21    >   INIT_FCALL                                               'fclose'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   24    24        ECHO                                                     '%3C%2Fpre%3E'
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.26 ms | 1395 KiB | 23 Q