3v4l.org

run code in 300+ PHP versions simultaneously
<?php method_exists('SplFileObject', 'fread') or die("No SplFileObject::fread()"); $i=0; $file = new SplFileObject(__FILE__); while ($i++ < 1000 && ($chunk = $file->fread(10)) !== false) { echo $chunk . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
Branch analysis from position: 24
Branch analysis from position: 24
filename:       /in/KOf2F
function name:  (null)
number of ops:  26
compiled vars:  !0 = $i, !1 = $file, !2 = $chunk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'method_exists'
          1        SEND_VAL                                                 'SplFileObject'
          2        SEND_VAL                                                 'fread'
          3        DO_ICALL                                         $3      
          4      > JMPNZ_EX                                         ~4      $3, ->7
          5    > > EXIT                                                     'No+SplFileObject%3A%3Afread%28%29'
          6*       BOOL                                             ~4      <true>
    4     7    >   ASSIGN                                                   !0, 0
    5     8        NEW                                              $6      'SplFileObject'
          9        SEND_VAL_EX                                              '%2Fin%2FKOf2F'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $6
    6    12      > JMP                                                      ->15
    7    13    >   CONCAT                                           ~9      !2, '%0A'
         14        ECHO                                                     ~9
    6    15    >   POST_INC                                         ~10     !0
         16        IS_SMALLER                                       ~11     ~10, 1000
         17      > JMPZ_EX                                          ~11     ~11, ->24
         18    >   INIT_METHOD_CALL                                         !1, 'fread'
         19        SEND_VAL_EX                                              10
         20        DO_FCALL                                      0  $12     
         21        ASSIGN                                           ~13     !2, $12
         22        TYPE_CHECK                                  1018  ~14     ~13
         23        BOOL                                             ~11     ~14
         24    > > JMPNZ                                                    ~11, ->13
    8    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.25 ms | 1396 KiB | 15 Q