3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '111 Angelito Concepcion'; $nameParts = explode(' ', $name); if (is_numeric($nameParts[0])) { array_shift($nameParts); } print_r($nameParts);
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.15, 8.5.0
Array ( [0] => Angelito [1] => Concepcion )

preferences:
45.94 ms | 406 KiB | 5 Q