3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>test</title> <meta charset="utf-8" /> </head> <body> <p><?= !empty($_POST['tel']) ? "Ваш телефон: $_POST[tel]" : 'Введите номер мобильного телефона' ?></p> <form id="form" method="POST" action="/"> +7 <input type="tel" name="tel" pattern="^(?:\(\d{3}\)|\d{3})[- ]?\d{3}[- ]?\d{2}[- ]?\d{2}$" title="Пример: (925) 123-45-67" required autofocus /> <input type="submit" /> </form> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <head> <title>test</title> <meta charset="utf-8" /> </head> <body> <p>Введите номер мобильного телефона</p> <form id="form" method="POST" action="/"> +7 <input type="tel" name="tel" pattern="^(?:\(\d{3}\)|\d{3})[- ]?\d{3}[- ]?\d{2}[- ]?\d{2}$" title="Пример: (925) 123-45-67" required autofocus /> <input type="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:
35.08 ms | 402 KiB | 8 Q