3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file1 = new \SplFileObject('ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt'); while( !$file1->eof() ) { $data = $file1->fgets(); if( !$file1->eof() ){ echo $data; } // second last } // last
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
Branch analysis from position: 13
filename:       /in/SnvQ5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $file1, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SplFileObject'
          1        SEND_VAL_EX                                              'ftp%3A%2F%2Fftp.nasdaqtrader.com%2FSymbolDirectory%2Fnasdaqlisted.txt'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4      > JMP                                                      ->13
    4     5    >   INIT_METHOD_CALL                                         !0, 'fgets'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_METHOD_CALL                                         !0, 'eof'
          9        DO_FCALL                                      0  $7      
         10        BOOL_NOT                                         ~8      $7
         11      > JMPZ                                                     ~8, ->13
    6    12    >   ECHO                                                     !1
    3    13    >   INIT_METHOD_CALL                                         !0, 'eof'
         14        DO_FCALL                                      0  $9      
         15        BOOL_NOT                                         ~10     $9
         16      > JMPNZ                                                    ~10, ->5
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.48 ms | 1394 KiB | 13 Q