3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); /*while ( TRUE ) { $data = base64_encode(fread($handle, 200)); }*/ $tmp = tmpfile(); fwrite($tmp, 'hello');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UVPov
function name:  (null)
number of ops:  14
compiled vars:  !0 = $file, !1 = $handle, !2 = $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                                         $4      
          5        ASSIGN                                                   !1, $4
   11     6        INIT_FCALL                                               'tmpfile'
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   13     9        INIT_FCALL                                               'fwrite'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 'hello'
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1394 KiB | 19 Q