3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<'TEXT' $xwbl209= "SN),AK mtyCcMXQHJ.T0-3qjfY5GnRl"; $k =5; function f3($a,$b,$c){ /*...*/ }; function f1(){ /*...*/ }; $a=1; $b=5; f1(); $aayw572 = f3($xwbl209{5},'',$xwbl209{10}); $k=10; function f2(){ /*...*/ }; $j=1; f1(); $bhzs038 = f3($xwbl209{5},$xwbl209{6},$xwbl209{8}); $aa = "aa"; function f4(){ /*...*/ }; $b=1; f4(); $b = "b"; function f5(){ /*...*/ }; $b=1; f4(); $aa = "aa"; function f6(){ /*...*/ }; $b=1; f6(); $bhzs038 = f3($xwbl209{5},$xwbl209{6},$xwbl209{8}); TEXT; var_export( preg_match_all( '~^.*?\bfunction\h+(\w+\([^()]*\)).*\b\1.*~m', $text, $out ) ? $out[0] : '' );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'function f1(){ /*...*/ }; $a=1; $b=5; f1();', 1 => '$aa = "aa"; function f4(){ /*...*/ }; $b=1; f4();', 2 => '$aa = "aa"; function f6(){ /*...*/ }; $b=1; f6();', )

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