3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrTot = array('10,000', '100,000', '200,000'); array_walk($arrTot, function (&$v) { $v = str_replace(',', '', $v); }); print_r($arrTot);
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.10, 8.0.0alpha1 - beta3
Array ( [0] => 10000 [1] => 100000 [2] => 200000 )