3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $handle = tmpfile(); $meta = stream_get_meta_data($handle); $tempfile = $meta['uri']; echo dirname($tempfile);
based on NhKTs
Output for 5.1.0 - 7.1.0
/tmp
Output for 4.3.0 - 5.0.5
Notice: Undefined index: uri in /in/QIc1Z on line 5