3v4l.org

run code in 200+ PHP versions simultaneously
<?php $mem=fopen('php://memory','rw'); var_dump(fstat($mem)); var_dump(stat('php://memory'));
Output for 5.6.30 - 7.4.0
array(26) { [0]=> int(12) [1]=> int(0) [2]=> int(33206) [3]=> int(1) [4]=> int(0) [5]=> int(0) [6]=> int(-1) [7]=> int(0) [8]=> int(0) [9]=> int(0) [10]=> int(0) [11]=> int(-1) [12]=> int(-1) ["dev"]=> int(12) ["ino"]=> int(0) ["mode"]=> int(33206) ["nlink"]=> int(1) ["uid"]=> int(0) ["gid"]=> int(0) ["rdev"]=> int(-1) ["size"]=> int(0) ["atime"]=> int(0) ["mtime"]=> int(0) ["ctime"]=> int(0) ["blksize"]=> int(-1) ["blocks"]=> int(-1) } Warning: stat(): stat failed for php://memory in /in/6TpPg on line 4 bool(false)