3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replaceExtension($subject, $search = ['.jpeg', '.jpg'], $replace = ['.png']) { return str_replace($search, $replace, $subject); } $tests = [ 'http://a3.mzstatic.com/us/r30/Purple4/v4/cc/74/5c/cc745cd5-9276-71ce-aaf2-0a4b380a2a1c/screen320x320.jpeg', 'http://is1.acf-7e2e-fe9b-4f2d-19019cbce528/mzl.vtyihyzd.png/0x0ss-85.jpg', 'https://itunes.apple.com/ru/developer/mail.ru-games/id566278107?ign-mpt=uo%3D4', 'https://itunes.apple.com/ru/developer/mail.ru-games/id566278107?ign-mpt=uo%3D4.png', ]; foreach ($tests as $test) { echo replaceExtension($test), PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
http://a3.mzstatic.com/us/r30/Purple4/v4/cc/74/5c/cc745cd5-9276-71ce-aaf2-0a4b380a2a1c/screen320x320.png http://is1.acf-7e2e-fe9b-4f2d-19019cbce528/mzl.vtyihyzd.png/0x0ss-85 https://itunes.apple.com/ru/developer/mail.ru-games/id566278107?ign-mpt=uo%3D4 https://itunes.apple.com/ru/developer/mail.ru-games/id566278107?ign-mpt=uo%3D4.png

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:
36.96 ms | 402 KiB | 8 Q