3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $handle = fopen(__FILE__, 'r'); var_dump(get_resource_type($handle)); fclose($handle); var_dump(gettype($handle));
Output for 7.2.0 - 7.3.0rc4
string(6) "stream" string(17) "resource (closed)"
Output for 5.1.0 - 7.1.20
string(6) "stream" string(12) "unknown type"
Output for 4.3.0 - 5.0.5
string(6) "stream" string(8) "resource"