3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $r = new RecursiveDirectoryIterator('.'); var_dump($r->getSubPath());
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(.): failed to open dir: Permission denied in /in/uXeSs:3 Stack trace: #0 /in/uXeSs(3): RecursiveDirectoryIterator->__construct('.') #1 {main} thrown in /in/uXeSs on line 3
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(.): failed to open dir: Permission denied' in /in/uXeSs:3 Stack trace: #0 /in/uXeSs(3): RecursiveDirectoryIterator->__construct('.') #1 {main} thrown in /in/uXeSs on line 3
Process exited with code 255.
Output for 5.3.18 - 5.4.45
string(0) ""