3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user_id1 = explode(',', '(001),(002),(003)'); $user_id= array(); foreach ($user_id1 as $vv) { $user_idd = substr($vv, 1, -1); array_push($user_id, $user_idd); } var_dump($user_id); ?>
based on uPSem
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
array(3) { [0]=> string(3) "001" [1]=> string(3) "002" [2]=> string(3) "003" }