3v4l.org

run code in 500+ PHP versions simultaneously
<?php $bucket = [1, 2, 'A', 'z', INF, '🐘']; print array_find($bucket, fn($x) => $x > '🐗' ); print array_find_key($bucket, fn($x) => $x > '🐗' );
Output for 8.4.9 - 8.4.27, 8.5.0 - 8.5.12
🐘5
Output for 8.2.32 - 8.2.35, 8.3.0 - 8.3.35
Fatal error: Uncaught Error: Call to undefined function array_find() in /in/CWbr8:5 Stack trace: #0 {main} thrown in /in/CWbr8 on line 5
Process exited with code 255.

preferences:
17.99 ms | 1162 KiB | 6 Q