3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = fopen('php://memory', 'r+'); fflush($s); var_dump(fflush($s)); $s = fopen('php://memory', 'r'); var_dump(fflush($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNnX4
function name:  (null)
number of ops:  26
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          2        SEND_VAL                                                 'r%2B'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'fflush'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'fflush'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'fopen'
         15        SEND_VAL                                                 'php%3A%2F%2Fmemory'
         16        SEND_VAL                                                 'r'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    7    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'fflush'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1395 KiB | 19 Q