3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = [ [ 'id' => 1, 'name' => 'foo', 'blah' => 'blah' ], [ 'id' => 14, 'name' => 'bar', 'blah' => 'blah' ], [ 'id' => 4, 'name' => 'baz', 'blah' => 'blah' ], [ 'id' => 16, 'name' => 'foobar', 'blah' => 'blah' ] ]; var_dump(array_filter($records, fn(array $detail): bool => in_array($detail['id'], [14, 16])));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [1]=> array(3) { ["id"]=> int(14) ["name"]=> string(3) "bar" ["blah"]=> string(4) "blah" } [3]=> array(3) { ["id"]=> int(16) ["name"]=> string(6) "foobar" ["blah"]=> string(4) "blah" } }

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:
81.28 ms | 406 KiB | 5 Q