3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); $dest = fopen('/tmp/derp', 'a+'); while ( TRUE ) { fwrite($dest, base64_encode(fread($handle, 200))); } fclose($dest);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
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 = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/v438F
function name:  (null)
number of ops:  29
compiled vars:  !0 = $file, !1 = $handle, !2 = $files, !3 = $dest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fdev%2Furandom'
    4     1        INIT_FCALL                                               'fopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'r'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        ASSIGN                                                   !2, <array>
    6     7        INIT_FCALL                                               'fopen'
          8        SEND_VAL                                                 '%2Ftmp%2Fderp'
          9        SEND_VAL                                                 'a%2B'
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    8    12      > JMP                                                      ->24
   10    13    >   INIT_FCALL                                               'fwrite'
         14        SEND_VAR                                                 !3
         15        INIT_FCALL                                               'base64_encode'
         16        INIT_FCALL                                               'fread'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 200
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        DO_ICALL                                         $11     
         22        SEND_VAR                                                 $11
         23        DO_ICALL                                                 
    8    24    > > JMPNZ                                                    <true>, ->13
   13    25    >   INIT_FCALL                                               'fclose'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.41 ms | 1396 KiB | 23 Q