3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ":Name :Name_en"; echo $str . chr(10); // The final int limits the function to a single replace. $str = str_replace(':Name', '"Test"', $str, 1); echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
:Name :Name_en Fatal error: Uncaught Error: str_replace(): Argument #4 ($count) could not be passed by reference in /in/X1s5n:7 Stack trace: #0 {main} thrown in /in/X1s5n on line 7
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:
45.06 ms | 1004 KiB | 4 Q