3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'rows' => [ [ 'sub1' => 'Spain', 'impressions' => 1022, 'earnings' => 0.13 ], [ 'sub1' => 'Germany', 'impressions' => 801, 'earnings' => 0.01 ], [ 'sub1' => 'Italy', 'impressions' => 684, 'earnings' => 0.35 ] ] ]; $find = 'Germany'; var_export( array_find( $array['rows'], fn($row) => $row['sub1'] === $find ) );
Output for git.master, git.master_jit
array ( 'sub1' => 'Germany', 'impressions' => 801, 'earnings' => 0.01, )

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:
29.98 ms | 855 KiB | 4 Q