3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fo = new SplFileObject(__FILE__); $fo->seek(1); var_dump($fo->current()); var_dump($fo->fgets());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WKpvA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplFileObject'
          1        SEND_VAL_EX                                              '%2Fin%2FWKpvA'
          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        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'current'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'fgets'
         14        DO_FCALL                                      0  $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.5 ms | 1386 KiB | 15 Q