- var_dump: documentation ( source)
- touch: documentation ( source)
- filemtime: documentation ( source)
<?php
// doesn't update realpath cache
touch('/tmp/foo');
var_dump(filemtime('/tmp/foo'));
touch('/tmp/foo', 1);
var_dump(filemtime('/tmp/foo'));
// does update the realpath cache
touch('file:///tmp/foo');
var_dump(filemtime('file:///tmp/foo'));
touch('file:///tmp/foo', 1);
var_dump(filemtime('file:///tmp/foo'));