3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = new SplFileObject(__FILE__); $file->seek(1); while (!$file->eof()) { echo $file->key(); echo $file->fgets(); $file->next(); } ?>
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 = 20, Position 2 = 8
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 8
Branch analysis from position: 20
Branch analysis from position: 8
filename:       /in/KPXcR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplFileObject'
          1        SEND_VAL_EX                                              '%2Fin%2FKPXcR'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'seek'
          5        SEND_VAL_EX                                              1
          6        DO_FCALL                                      0          
    4     7      > JMP                                                      ->16
    5     8    >   INIT_METHOD_CALL                                         !0, 'key'
          9        DO_FCALL                                      0  $5      
         10        ECHO                                                     $5
    6    11        INIT_METHOD_CALL                                         !0, 'fgets'
         12        DO_FCALL                                      0  $6      
         13        ECHO                                                     $6
    7    14        INIT_METHOD_CALL                                         !0, 'next'
         15        DO_FCALL                                      0          
    4    16    >   INIT_METHOD_CALL                                         !0, 'eof'
         17        DO_FCALL                                      0  $8      
         18        BOOL_NOT                                         ~9      $8
         19      > JMPNZ                                                    ~9, ->8
    9    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.06 ms | 994 KiB | 13 Q