3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = Array ( "data" => 'check', "test1" => Array ( "data" => 'Hello', ), "test2" => Array ( "data" => 'world' ), "test3" => Array ( "data" => 'bar', "tst" => Array ( "data" => 'Lorem', "bar" => Array ( "data" => 'doller', "foo" => Array ( "data" => 'sit', ) ) ) ), "test4" => Array ( "data" => 'HELLO', "tst" => Array ( "data" => 'ipsum', "bar" => Array ( "data" => 'Lorem', ) ) ) ); $arr['test5']['data'] = 'ss'; $result = []; array_walk_recursive($arr, function($v) use (&$result) { $result[] = $v; }); echo implode('/', $result);
based on AJZnt
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
check/Hello/world/bar/Lorem/doller/sit/HELLO/ipsum/Lorem/ss