3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = 'aaa,test'; $locations = explode(',', $test); var_dump($locations); var_dump(array_pop($locations));
based on 5esou
Output for 4.3.0 - 7.2.0
array(2) { [0]=> string(3) "aaa" [1]=> string(4) "test" } string(4) "test"