3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'http://example.com/site.xml', 'http://example.com/my_custom_links_part1.xml', 'http://example.com/my_custom_links_part2.xml', 'http://example.com/my_custom_links_part3.xml', 'http://example.com/my_some_other_custom_links_part1.xml', ]; $needle = 'my_custom_links'; var_export( array_filter( $array, fn($haystack) => str_contains($haystack, $needle) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 1 => 'http://example.com/my_custom_links_part1.xml', 2 => 'http://example.com/my_custom_links_part2.xml', 3 => 'http://example.com/my_custom_links_part3.xml', )

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