3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Complete the crosswordPuzzle function below. function crosswordPuzzle($crossword, $words) { } $fptr = fopen(getenv("OUTPUT_PATH"), "w"); $stdin = fopen("php://stdin", "r"); $crossword = array(); for ($i = 0; $i < 10; $i++) { $crossword_item = ''; fscanf($stdin, "%[^\n]", $crossword_item); $crossword[] = $crossword_item; } $words = ''; fscanf($stdin, "%[^\n]", $words); $result = crosswordPuzzle($crossword, $words); fwrite($fptr, implode("\n", $result) . "\n"); fclose($stdin); fclose($fptr);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: Path cannot be empty in /in/uGC9b:9 Stack trace: #0 /in/uGC9b(9): fopen('', 'w') #1 {main} thrown in /in/uGC9b on line 9
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:
163.58 ms | 405 KiB | 5 Q