3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $parts = explode(';',"1352,13;21313;okthis"); 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);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 1352,13 [1] => 21313 [2] => okthis ) okthis parts should now be one lessArray ( [0] => 1352,13 [1] => 21313 ) 1352,13;21313