3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myArray = array( array( 'score' => array('100','200'), 'name' => 'Sam', 'subject' => 'Data Structures' ), array( 'score' => array('300','400'), 'name' => 'Tanya', 'subject' => 'Advanced Algorithms' ), array( 'score' => array('500','600'), 'name' => 'Jack', 'subject' => 'Distributed Computing' ) ); var_dump(array_filter($myArray, fn($v) => in_array(100, $v['score'])));
Output for rfc.property-hooks, git.master, git.master_jit
array(1) { [0]=> array(3) { ["score"]=> array(2) { [0]=> string(3) "100" [1]=> string(3) "200" } ["name"]=> string(3) "Sam" ["subject"]=> string(15) "Data Structures" } }

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:
45.74 ms | 1433 KiB | 4 Q