3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bad = array('google.com', 'orange', 'satisfied'); $replace = array('[redacted URL]', 'an unspecified color', 'content'); $text = 'If you search google.com for orange, you will be satisfied with the answer.'; echo str_replace($bad, $replace, $text);
Output for git.master, git.master_jit, rfc.property-hooks
If you search [redacted URL] for an unspecified color, you will be content with the answer.

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:
73.8 ms | 401 KiB | 8 Q