3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); while ( TRUE ) { $data = base64_encode(fread($handle, 200)); $tmp = tmpfile(); var_dump($tmp); // exit; fwrite($tmp, $data); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 8
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 8
Branch analysis from position: 29
Branch analysis from position: 8
filename:       /in/CQFPu
function name:  (null)
number of ops:  30
compiled vars:  !0 = $file, !1 = $handle, !2 = $files, !3 = $data, !4 = $tmp
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                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        ASSIGN                                                   !2, <array>
    7     7      > JMP                                                      ->28
    9     8    >   INIT_FCALL                                               'base64_encode'
          9        INIT_FCALL                                               'fread'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 200
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !3, $10
   10    16        INIT_FCALL                                               'tmpfile'
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !4, $12
   12    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                                 
   15    22        INIT_FCALL                                               'fwrite'
         23        SEND_VAR                                                 !4
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
   19    26        ASSIGN_DIM                                               !2
         27        OP_DATA                                                  !4
    7    28    > > JMPNZ                                                    <true>, ->8
   20    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.86 ms | 1396 KiB | 25 Q