3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.monsit.eu/images/imac.png'; $f = new SplFileInfo($url); var_dump($f);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
object(SplFileInfo)#1 (2) { ["pathName":"SplFileInfo":private]=> string(36) "http://www.monsit.eu/images/imac.png" ["fileName":"SplFileInfo":private]=> string(8) "imac.png" }
Output for hhvm-3.12.0
object(SplFileInfo)#1 (3) { ["fileName":"SplFileInfo":private]=> string(36) "http://www.monsit.eu/images/imac.png" ["fileClass":"SplFileInfo":private]=> string(13) "SplFileObject" ["infoClass":"SplFileInfo":private]=> string(11) "SplFileInfo" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.2 - 5.2.17
object(SplFileInfo)#1 (0) { }
Output for 5.0.0 - 5.1.1
Fatal error: Class 'SplFileInfo' not found in /in/4kMrf on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/4kMrf on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/4kMrf on line 5