3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'needle' => 'needle in haystack text', 'Need' => 'another needle', 'fine' => 'refined', 'found' => 'Foundation', '' => 'non-empty haystack', 'missing' => 'not here', 'This is 0 in a haystack!', ]; var_export( array_filter( $array, function($haystack, $needle) { return strpos($haystack, $needle) !== false; }, ARRAY_FILTER_USE_BOTH ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'needle' => 'needle in haystack text', 'fine' => 'refined', '' => 'non-empty haystack', 0 => 'This is 0 in a haystack!', )

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:
123.28 ms | 405 KiB | 5 Q