3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); ?>
based on Ha4it
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Fatal error: Cannot use [] for reading in /in/uPSem on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Cannot use [] for reading in /in/uPSem:3 Stack trace: #0 {main}
Process exited with code 255.