3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function importCommissions() { foreach (range('a', 'z') as $key => $data) { $data = range('a', 'z'); $data = array_walk($data, function (&$item) { $item = utf8_encode($item); });; } return $data; } } $test = new Test(); var_dump($test->importCommissions());
based on qCKcj
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
bool(true)