3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Установка предела в 5 MB. $fiveMBs = 5 * 1024 * 1024; $fp = fopen("php://temp/maxmemory:$fiveMBs", '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/2XK6b
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fiveMBs, !1 = $fp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5242880
    4     1        INIT_FCALL                                               'fopen'
          2        NOP                                                      
          3        FAST_CONCAT                                      ~3      'php%3A%2F%2Ftemp%2Fmaxmemory%3A', !0
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 'r%2B'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        INIT_FCALL                                               'fputs'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 'hello%0A'
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'rewind'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'stream_get_contents'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $8      
         18        ECHO                                                     $8
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.9 ms | 1395 KiB | 21 Q