3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_id1 = explode(',', '(001),(002),(003)'); $user_id[]; foreach ($user_id1 as $vv) { $user_idd = substr($vv, 1, -1); array_push($user_id, $user_idd); } var_dump($user_id); ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Fatal error: Cannot use [] for reading in /in/uPSem on line 3
Process exited with code 255.

preferences:
173.96 ms | 1395 KiB | 36 Q