3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (class_exists('RecursiveDirectoryIterator')) { $i1 = new RecursiveDirectoryIterator('/tmp'); $i2 = new RecursiveDirectoryIterator('/var/../tmp'); var_dump($i1 == $i2); } else { var_dump('Class RecursiveDirectoryIterator does not exist'); }
based on poari
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
bool(true)
Output for hhvm-3.10.0 - 3.12.0
bool(false)
Output for 4.3.0 - 4.4.9
string(47) "Class RecursiveDirectoryIterator does not exist"