3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = explode(';',"1352,13;21313"); print_r($parts); $returnVal = array_pop($parts); print_r($returnVal); echo "\nparts should now be one less"; print_r($parts); $newVal = implode(";",$parts); print_r($newVal);

preferences:
32.95 ms | 402 KiB | 5 Q