3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'First%20sentence.%0D%0ASecond%20Sentence.', 'Just%20one%20sentence.', ]; foreach ($strings as $string) { echo "\n---\n"; echo preg_replace('/%0[AD].*/', '', $string); }
Output for git.master_jit, git.master, rfc.property-hooks
--- First%20sentence. --- Just%20one%20sentence.

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