3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = "1352,13;21313"; print_r(explode(';',$val)); $returnVal = array_pop($parts); print_r($returnVal);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Array ( [0] => 1352,13 [1] => 21313 ) Warning: array_pop() expects parameter 1 to be array, null given in /in/lgOqa on line 5
Output for hhvm-3.12.0
Array ( [0] => 1352,13 [1] => 21313 ) Warning: array_pop() expects parameter 1 to be an array or mutable collection in /in/lgOqa on line 5
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.2.17
Array ( [0] => 1352,13 [1] => 21313 ) Warning: array_pop(): The argument should be an array in /in/lgOqa on line 5
Output for 4.3.0 - 4.3.1
Array ( [0] => 1352,13 [1] => 21313 ) Warning: array_pop() [http://www.php.net/function.array-pop]: The argument should be an array in /in/lgOqa on line 5