3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_pop(range(0,5))); var_dump(array_pop((range(0,5))));
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/T4F8J on line 3 int(5) Notice: Only variables should be passed by reference in /in/T4F8J on line 4 int(5)
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/T4F8J on line 3 int(5) int(5)