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($file->getSize())) !== 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 = 26
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 13
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
Branch analysis from position: 26
Branch analysis from position: 26
filename:       /in/MGoLS
function name:  (null)
number of ops:  28
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%2FMGoLS'
         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, ->26
         18    >   INIT_METHOD_CALL                                         !1, 'fread'
         19        INIT_METHOD_CALL                                         !1, 'getSize'
         20        DO_FCALL                                      0  $12     
         21        SEND_VAR_NO_REF_EX                                       $12
         22        DO_FCALL                                      0  $13     
         23        ASSIGN                                           ~14     !2, $13
         24        TYPE_CHECK                                  1018  ~15     ~14
         25        BOOL                                             ~11     ~15
         26    > > JMPNZ                                                    ~11, ->13
    8    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.42 ms | 1396 KiB | 15 Q