3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($content, $keys) { return sizeof($keys) === 0 ? $content : foo([array_pop($keys) => $content], $keys); } print_r(foo('bar', ['a', 'b', 'c', 'd', 'e']));

This is an error 404

There are `0` results


preferences:
135.98 ms | 1015 KiB | 7 Q