3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head><title>some title</title></head> <body> <form method="post" action=""> <input type="text" name="something"/> <input type="submit" value="click" name="submit" /> </form> <?php if(isset($_POST['submit'])) { $text = $_POST ['something']; $replaced = preg_replace('#https://www\.youtube\.com/watch\?v=(\w+)[^\s]+#i','<iframe width="853" height="480" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>',$text); echo $replaced ; } ?> </body> <html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <head><title>some title</title></head> <body> <form method="post" action=""> <input type="text" name="something"/> <input type="submit" value="click" name="submit" /> </form> </body> <html>

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.34 ms | 401 KiB | 8 Q