3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file=fopen("text1.txt","a+"); $text = "Helle Student"; fwrite($file, "$text"); while (!feof($file)) { fgets($file); } fclose($file); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 12
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 12
Branch analysis from position: 20
Branch analysis from position: 12
filename:       /in/3oiY1
function name:  (null)
number of ops:  24
compiled vars:  !0 = $file, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'text1.txt'
          2        SEND_VAL                                                 'a%2B'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        ASSIGN                                                   !1, 'Helle+Student'
    5     6        INIT_FCALL                                               'fwrite'
          7        SEND_VAR                                                 !0
          8        CAST                                          6  ~5      !1
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    7    11      > JMP                                                      ->15
    8    12    >   INIT_FCALL                                               'fgets'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
    7    15    >   INIT_FCALL                                               'feof'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        BOOL_NOT                                         ~9      $8
         19      > JMPNZ                                                    ~9, ->12
   11    20    >   INIT_FCALL                                               'fclose'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   13    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.99 ms | 1395 KiB | 23 Q