3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { return $res = array(); } if (empty(foo())) { echo "empty"; }
based on qOHES
Output for 5.5.24 - 7.2.0
empty
Output for 5.3.18 - 5.4.45
Fatal error: Can't use function return value in write context in /in/BXllc on line 6
Process exited with code 255.