3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = NULL; $pop = array_pop( $test ); echo $pop;
Output for 5.3.0 - 5.6.30, 7.0.0 - 7.2.0
Warning: array_pop() expects parameter 1 to be array, null given in /in/Xi8oW on line 4
Output for hhvm-3.10.1 - 3.17.3
Warning: array_pop() expects parameter 1 to be an array or mutable collection in /in/Xi8oW on line 4
Output for 4.3.2 - 5.2.17
Warning: array_pop(): The argument should be an array in /in/Xi8oW on line 4
Output for 4.3.0 - 4.3.1
Warning: array_pop() [http://www.php.net/function.array-pop]: The argument should be an array in /in/Xi8oW on line 4