3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fh = tmpfile(); fwrite($fh, str_repeat('x', 8191) . "\r\ny"); fseek($fh, 0); $i = 0; while($f = fgetcsv($fh)) { echo $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 18
Branch analysis from position: 25
Branch analysis from position: 18
filename:       /in/WsbSm
function name:  (null)
number of ops:  26
compiled vars:  !0 = $fh, !1 = $i, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'tmpfile'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        INIT_FCALL                                               'fwrite'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'str_repeat'
          6        SEND_VAL                                                 'x'
          7        SEND_VAL                                                 8191
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      $5, '%0D%0Ay'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    4    12        INIT_FCALL                                               'fseek'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 0
         15        DO_ICALL                                                 
    5    16        ASSIGN                                                   !1, 0
    6    17      > JMP                                                      ->20
    7    18    >   POST_INC                                         ~10     !1
         19        ECHO                                                     ~10
    6    20    >   INIT_FCALL                                               'fgetcsv'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $11     
         23        ASSIGN                                           ~12     !2, $11
         24      > JMPNZ                                                    ~12, ->18
    8    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.15 ms | 1395 KiB | 23 Q