3v4l.org

run code in 500+ PHP versions simultaneously
<?php function print_line(string $output): void { echo $output . PHP_EOL; } $rel = [ 'noopener' => true, 'external' => false, 'nofollow' => true, ]; $compiled = array_map(function ($k,$v) { return $k; }, $rel); print_r($compiled);
Output for git.master_jit, git.master
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure:/in/hMrLA:12}(), 1 passed and exactly 2 expected in /in/hMrLA:12 Stack trace: #0 [internal function]: {closure:/in/hMrLA:12}(true) #1 /in/hMrLA(12): array_map(Object(Closure), Array) #2 {main} thrown in /in/hMrLA on line 12
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:
40.25 ms | 716 KiB | 4 Q