3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen("php://temp", 'r+'); fputs($fp, "hello\n"); // Читаем то, что мы записали. //rewind($fp); echo stream_get_contents($fp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JuqA5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          2        SEND_VAL                                                 'r%2B'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'fputs'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'hello%0A'
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'stream_get_contents'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.84 ms | 1394 KiB | 19 Q