3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='12345'; echo array_pop(str_split($test));

preferences:
26.2 ms | 402 KiB | 5 Q