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 = fopen(tempnam(), 'r'); fwrite($tmp, 'hello'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 8
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 8
Branch analysis from position: 28
Branch analysis from position: 8
filename:       /in/6slvL
function name:  (null)
number of ops:  29
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                                                      ->27
    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                                               'fopen'
         17        INIT_FCALL                                               'tempnam'
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        SEND_VAL                                                 'r'
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !4, $13
   12    23        INIT_FCALL                                               'fwrite'
         24        SEND_VAR                                                 !4
         25        SEND_VAL                                                 'hello'
         26        DO_ICALL                                                 
    7    27    > > JMPNZ                                                    <true>, ->8
   13    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1396 KiB | 23 Q