3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'y' => 35, 'x' => 51, 'c_3' => 4, 'c_1' => 54, 'c_6' => 53, 'c_9' => 52, 'z' => 4, ]; var_export( array_filter( $arr, function($v) use($arr) { return preg_match( '#c_\d#', array_search($v, $arr) ); } ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'c_3' => 4, 'c_1' => 54, 'c_6' => 53, 'c_9' => 52, 'z' => 4, )

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