3v4l.org

run code in 500+ PHP versions simultaneously
<?php $handle = fopen("/Users/ssarwe/Downloads/clientsToSet.txt", "r") or die("Couldn't get handle"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer.PHP_EOL; } fclose($handle); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 12
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 12
Branch analysis from position: 24
Branch analysis from position: 12
Branch analysis from position: 27
filename:       /in/oGqOd
function name:  (null)
number of ops:  28
compiled vars:  !0 = $handle, !1 = $buffer
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'fopen'
          1        SEND_VAL                                                     '%2FUsers%2Fssarwe%2FDownloads%2FclientsToSet.txt'
          2        SEND_VAL                                                     'r'
          3        DO_ICALL                                             $2      
          4        ASSIGN                                               ~3      !0, $2
          5      > JMPNZ_EX                                             ~3      ~3, ->10
          6    > > INIT_FCALL                                                   'exit'
          7*       SEND_VAL                                                     'Couldn%27t+get+handle'
          8*       DO_ICALL                                             $4      
          9*       BOOL                                                 ~3      $4
    3    10    > > JMPZ                                                         !0, ->27
    4    11    > > JMP                                                          ->19
    5    12    >   INIT_FCALL                                                   'fgets'
         13        SEND_VAR                                                     !0
         14        SEND_VAL                                                     4096
         15        DO_ICALL                                             $5      
         16        ASSIGN                                                       !1, $5
    6    17        CONCAT                                               ~7      !1, '%0A'
         18        ECHO                                                         ~7
    4    19    >   INIT_FCALL                                                   'feof'
         20        SEND_VAR                                                     !0
         21        DO_ICALL                                             $8      
         22        BOOL_NOT                                             ~9      $8
         23      > JMPNZ                                                        ~9, ->12
    8    24    >   INIT_FCALL                                                   'fclose'
         25        SEND_VAR                                                     !0
         26        DO_ICALL                                                     
    9    27    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166 ms | 1394 KiB | 18 Q