3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(1, 1000); var_dump(array_change_keys($a, function ($k, $v) { return md5($v); }));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
Fatal error: Uncaught Error: Call to undefined function array_change_keys() in /in/3vdas:5 Stack trace: #0 {main} thrown in /in/3vdas on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28
Fatal error: Call to undefined function array_change_keys() in /in/3vdas on line 5
Process exited with code 255.

preferences:
67.34 ms | 407 KiB | 5 Q