3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i1 = new \RecursiveDirectoryIterator(sys_get_temp_dir()); $i2 = new \RecursiveDirectoryIterator(sys_get_temp_dir()); var_dump($i1 == $i2);
based on ii2iK
Output for 5.3.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 5.2.1 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 4 bool(true)
Output for 5.0.0 - 5.2.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 4 Fatal error: Call to undefined function sys_get_temp_dir() in /in/LNobs on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 4 Fatal error: Cannot instantiate non-existent class: recursivedirectoryiterator in /in/LNobs on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/LNobs on line 4 Fatal error: Cannot instantiate non-existent class: recursivedirectoryiterator in /in/LNobs on line 3