3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = new SplFileObject( __FILE__ ); $s->setMaxLineLen( 3); echo $s->fgets();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9N3DZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplFileObject'
          1        SEND_VAL_EX                                              '%2Fin%2F9N3DZ'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    3     4        INIT_METHOD_CALL                                         !0, 'setMaxLineLen'
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0          
    4     7        INIT_METHOD_CALL                                         !0, 'fgets'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1392 KiB | 13 Q