3v4l.org

run code in 300+ PHP versions simultaneously
<?php function the_title() { echo "Gas & Oil"; } function get_the_title() { return "Gas & Oil"; } ?> <a href="mailto:a@mail.com?subject=<?=urlencode(the_title()); ?>">Apply</a><br> <!-- doesn't work --> <a href="mailto:a@mail.com?subject=<?=urlencode(get_the_title()); ?>">Apply</a> <!-- works -->
Output for git.master, git.master_jit, rfc.property-hooks
<a href="mailto:a@mail.com?subject=Gas & Oil Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /in/kFu1v on line 9 ">Apply</a><br> <!-- doesn't work --> <a href="mailto:a@mail.com?subject=Gas+%26+Oil">Apply</a> <!-- works -->

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:
89.07 ms | 401 KiB | 8 Q