3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '$SERVER["REMOTE_ADDR"] = "127.0.0.1;'; $trigger = ".*)/e\0"; // function to emphasize the searched word in the results preg_replace( "/($trigger)/i", '"<em>" . strtoupper($1) . "</em>"', $data ); var_dump($SERVER["REMOTE_ADDR"]);
Output for git.master, git.master_jit
Warning: preg_replace(): NUL is not a valid modifier in /in/oXcjT on line 7 Warning: Undefined variable $SERVER in /in/oXcjT on line 9 Warning: Trying to access array offset on value of type null in /in/oXcjT on line 9 NULL
Output for rfc.property-hooks
Warning: preg_replace(): NUL is not a valid modifier in /in/oXcjT on line 7 Warning: Undefined variable $SERVER in /in/oXcjT on line 9 Warning: Trying to access array offset on null in /in/oXcjT on line 9 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:
41.03 ms | 401 KiB | 8 Q