3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('/(nÖdkåpa)/i', '$1 xD', 'nödkåpa blabla', 'UTF-8'));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: preg_replace(): Argument #4 ($limit) must be of type int, string given in /in/KJVbQ:3 Stack trace: #0 /in/KJVbQ(3): preg_replace('/(n\xC3\x96dk\xC3\xA5pa)/i', '$1 xD', 'n\xC3\xB6dk\xC3\xA5pa blabl...', 'UTF-8') #1 {main} thrown in /in/KJVbQ on line 3
Process exited with code 255.

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