3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray = [ [1, 2, "file1.png"], [1, 3, "file2.png"], [1, 4, "file3.png"], ]; $coords = [1, 3]; echo array_find( $testArray, fn($row) => $coords === [$row[0], $row[1]] )[2] ?? 'Not Found';
Output for git.master_jit, git.master
file2.png

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.27 ms | 405 KiB | 5 Q