3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** @param \SplFileInfo $object The object (not referenced). */ function testOk($object) { $object->getATime (); // Content Assist works } /** * * @param * \SplFileInfo &$object The object (referenced, notice the &). * */ function testOk(&$object) { $object->getATime (); // Content Assist does not work } ?>
Output for 5.3.0 - 5.4.31
Fatal error: Cannot redeclare testOk() (previously declared in /in/IsQF7:6) in /in/IsQF7 on line 17
Process exited with code 255.