3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace("/sensitive/i", "INSENSITIVE", "This is case sensitive")); // URL encoded "/i" with NULL byte; $evilInput = urldecode("%2Fi%00"); $pattern = "/not " . $evilInput . "/"; var_dump(preg_replace($pattern, "TOTALLY ", "preg_replace is NOT injectable!"));
Output for git.master_jit, git.master, rfc.property-hooks
string(24) "This is case INSENSITIVE" Warning: preg_replace(): NUL is not a valid modifier in /in/Kp2FC on line 8 NULL

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