3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(array(STDIN,STDOUT,STDERR,tmpfile()) as $resource){ var_dump(unserialize(serialize($resource))); }
Output for 5.2.3 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.2
int(0) int(0) int(0) int(0)
Output for 4.3.0 - 5.2.2
Notice: Use of undefined constant STDIN - assumed 'STDIN' in /in/hcPKv on line 2 Notice: Use of undefined constant STDOUT - assumed 'STDOUT' in /in/hcPKv on line 2 Notice: Use of undefined constant STDERR - assumed 'STDERR' in /in/hcPKv on line 2 string(5) "STDIN" string(6) "STDOUT" string(6) "STDERR" int(0)