3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dedupe(array $foo) { return $foo; } // Input & Output Streams $input = fopen("php://stdin", "r"); $output = fopen("php://stdout","w"); // Count Arguments $argument_count = 0; fscanf($input, "%d", $argument_count); // Argument Values $arguments = []; for ($i=0; $i < $argument_count; $i++) { $arguments[] = json_decode(trim(fgets($input)), true, 16); } // Run Candidate Code $result = call_user_func_array('dedupe', $arguments); // Output Result fwrite($output, json_encode($result)); fclose($output);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function dedupe(), 0 passed in /in/vtW5f on line 23 and exactly 1 expected in /in/vtW5f:3 Stack trace: #0 /in/vtW5f(23): dedupe() #1 {main} thrown in /in/vtW5f on line 3
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:
53.58 ms | 401 KiB | 8 Q