3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'mark@test.by.com'=> "Mark Mian lv", 'jhon@test.lv.com'=> "John jack lv", 'logon@test.en.com'=> "Bob Logon", 'Stela@test.es.com'=> "Stela Josh", 'json@test.es.com'=> "Json Josh", 'bobby@test.lv.com'=> "Bob Mark" ]; $needle = 'b'; var_export( array_filter( $array, fn($v, $k) => str_contains($v, $needle) || str_contains($k, $needle), ARRAY_FILTER_USE_BOTH ) );
Output for rfc.property-hooks, git.master_jit, git.master
array ( 'mark@test.by.com' => 'Mark Mian lv', 'logon@test.en.com' => 'Bob Logon', 'bobby@test.lv.com' => 'Bob Mark', )

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:
55.87 ms | 1269 KiB | 4 Q