3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new stdClass(); $foo2 = new stdClass(); $test = new SplObjectStorage(); $test->attach($foo); $test->attach($foo2); if (in_array($test, $foo)) { array_walk(iterator_to_array($test), function (): void { echo "Hallo\n"; });
Output for 7.2.6
Parse error: syntax error, unexpected end of file in /in/3qjVL on line 13
Process exited with code 255.