3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php new \SplFileInfo(null);
Output for 5.3.0 - 5.6.30, hhvm-3.10.1, 7.0.0 - 7.1.7
Output for hhvm-3.15.4 - 3.17.3
Fatal error: Uncaught TypeError: Argument 1 passed to rtrim() must be an instance of string, null given in /in/W9PoM:4 Stack trace: #0 (): rtrim() #1 (): SplFileInfo->setPathname() #2 /in/W9PoM(4): SplFileInfo->__construct() #3 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.13.2
Fatal error: Uncaught TypeError: Argument 1 passed to rtrim() must be an instance of string, null given in /in/W9PoM:4 Stack trace: #0 /in/W9PoM(4): SplFileInfo->__construct() #1 {main}
Process exited with code 255.
Output for 5.1.2 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/W9PoM on line 4
Output for 5.0.0 - 5.1.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/W9PoM on line 4 Fatal error: Class 'SplFileInfo' not found in /in/W9PoM on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/W9PoM on line 4 Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/W9PoM on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/W9PoM on line 4 Fatal error: Cannot instantiate non-existent class: splfileinfo in /in/W9PoM on line 4