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)))); var_dump(range(1,4)); var_dump((range(1,4)));
based on HKgNE
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/nKhHZ on line 3 int(4) Notice: Only variables should be passed by reference in /in/nKhHZ on line 4 int(4) array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) }
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/nKhHZ on line 3 int(4) int(4) array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) } array(4) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) }