3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "This is a test", "This is a TEST", "Test this testy contest protest test!", "TeSt this", ]; var_export( preg_replace('/\btest\b/i', '<b>$0</b>', $array) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'This is a <b>test</b>', 1 => 'This is a <b>TEST</b>', 2 => '<b>Test</b> this testy contest protest <b>test</b>!', 3 => '<b>TeSt</b> this', )

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