3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [2015 => '2015'], [2016 => '2016'], [2017 => '2017'], [2018 => '2018'], [2019 => '2019'], [2020 => '2020'], [2021 => '2021'], [2022 => '2022'], [2023 => '2023'] ]; $result = []; array_walk_recursive($years, function($v, $k) use (&$result) { $result[$k] = $v; }); var_export($result);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_walk_recursive(): Argument #1 ($array) must be of type array, null given in /in/TQodA:16 Stack trace: #0 /in/TQodA(16): array_walk_recursive(NULL, Object(Closure)) #1 {main} thrown in /in/TQodA on line 16
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
86.85 ms | 405 KiB | 5 Q