3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Modification and access time touch("/tmp/test2", strtotime("@100200300"), strtotime("@100400500")); $fileInfo = new SplFileInfo("/tmp/test2"); print($fileInfo->getMTime()."\n"); print($fileInfo->getATime()."\n");
Output for 5.1.2 - 7.1.0
100200300 100400500
Output for 5.0.0 - 5.1.1
Fatal error: Class 'SplFileInfo' not found in /in/NugMf on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/NugMf on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/NugMf on line 4