3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum e : string { case A = 'a'; } print http_build_query(['a' => 'A', 'b' => e::A]); // PHP 8.4 and more recent : a=A&b=a // Pre PHP 8.4 : a=A&b%5Bname%5D=A&b%5Bvalue%5D=a a=A&b[name]=A&b[value]='a'
Output for git.master_jit, git.master
a=A&b=a

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:
51.67 ms | 644 KiB | 4 Q