3v4l.org

run code in 300+ PHP versions simultaneously
<?php function spam($email) { $email = 'aaa@eqreqrq.sgwgfwr'; $email = preg_replace("/\./", " dot ", $email); $email = preg_replace("/@/", " AT ", $email); return $email; } function markup($filename, $use_me) { $contents = '$email'; $contents = preg_replace("/(\[email (.*)\])/e", "spam(\"\\2\")", $contents); $contents = preg_replace("/\[/", "<", $contents); $contents = preg_replace("/\]/", ">", $contents); return $contents; } $output = markup($argv[1], $argv[2]); $output2 = spam($argv[1]); print $output2; print $output;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 1 in /in/tSP55 on line 24 Warning: Undefined array key 2 in /in/tSP55 on line 24 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/tSP55 on line 17 Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/tSP55 on line 18 Warning: Undefined array key 1 in /in/tSP55 on line 26 aaa AT eqreqrq dot sgwgfwr

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