3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = new SplFileObject(__FILE__); $f->seek(0); echo $f->fgets(); $f->seek(1); echo $f->fgets(); $f->seek(2); echo $f->fgets();
based on 9C6t8
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KL7Z3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $f
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $1      :41
         1        SEND_VAL_EX                                              '%2Fin%2FKL7Z3'
         2        DO_FCALL                                      0          
         3        QM_ASSIGN                                                !0
   3     4        INIT_METHOD_CALL                                         !0, 'seek'
         5        SEND_VAL_EX                                              0
         6        DO_FCALL                                      0          
   4     7        INIT_METHOD_CALL                                         !0, 'fgets'
         8        DO_FCALL                                      0  $5      
         9        ASSIGN_OBJ                                               $5
   5    10        INIT_METHOD_CALL                                         !0, 'seek'
        11        SEND_VAL_EX                                              1
        12        DO_FCALL                                      0          
   6    13        INIT_METHOD_CALL                                         !0, 'fgets'
        14        DO_FCALL                                      0  $7      
        15        ASSIGN_OBJ                                               $7
   7    16        INIT_METHOD_CALL                                         !0, 'seek'
        17        SEND_VAL_EX                                              2
        18        DO_FCALL                                      0          
   8    19        INIT_METHOD_CALL                                         !0, 'fgets'
        20        DO_FCALL                                      0  $9      
        21        ASSIGN_OBJ                                               $9
        22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0