3v4l.org

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