3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = fopen('php://temp', 'r+'); fwrite($data, "test\r\ntest\r\n\r"); $stream = fopen("php://temp", 'r+'); stream_filter_append($stream, 'convert.quoted-printable-encode', STREAM_FILTER_WRITE, array('line-length' => 5, 'line-break-chars' => "\r\n")); rewind($data); stream_copy_to_stream($data, $stream);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nvnu5
function name:  (null)
number of ops:  28
compiled vars:  !0 = $data, !1 = $stream
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          2        SEND_VAL                                                 'r%2B'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'fwrite'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'test%0D%0Atest%0D%0A%0D'
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'fopen'
         10        SEND_VAL                                                 'php%3A%2F%2Ftemp'
         11        SEND_VAL                                                 'r%2B'
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    7    14        INIT_FCALL                                               'stream_filter_append'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 'convert.quoted-printable-encode'
         17        SEND_VAL                                                 2
         18        SEND_VAL                                                 <array>
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'rewind'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
    9    23        INIT_FCALL                                               'stream_copy_to_stream'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.06 ms | 1395 KiB | 23 Q