3v4l.org

run code in 300+ PHP versions simultaneously
<?php $layout = 'The [[quick]] brown fox jumped over the [[lazy]] dog'; $data = ['quick' => 'slow', 'lazy' => 'brown']; $search = array_map(function ($s) { return "[[$s]]"; }, array_keys($data)); $replacements = array_values($data); echo str_replace($search, $replacements, $layout);
Output for git.master, git.master_jit, rfc.property-hooks
The slow brown fox jumped over the brown dog

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