3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(key(array_slice([1,2,3], 1, 1, true))); var_dump(end(array_slice([1,2,3], 1, 1, true)));
based on b70OD
Output for 7.0.0 - 7.2.0
int(1) Notice: Only variables should be passed by reference in /in/b31gp on line 3 int(2)
Output for hhvm-3.10.1 - 3.17.3
int(1) int(2)
Output for 5.4.0 - 5.6.30
int(1) Strict Standards: Only variables should be passed by reference in /in/b31gp on line 3 int(2)