3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { } $foo = new Foo(); var_dump(current($foo));
Output for 5.6.30, 7.0.30 - 7.3.0beta1
bool(false)
Output for hhvm-3.22.0
Warning: Invalid operand type was used: expecting an array in /in/fku2Q on line -1 bool(false)
Output for hhvm-3.18.5 - 3.21.3
Warning: Invalid operand type was used: expecting an array in /in/fku2Q on line 9 bool(false)