3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'user' => array( 'name' => 'Bob Smith', 'age' => 47.7, 'sex' => 'M', 'do.b' => '5/12/1956', 'isHuman' => false, ), 'pastimes' => array('golf', 'opera', 'poker', 'rap'), 'children' => array( 'bobby' => array('age'=>12, 'sex'=>'M'), 'sally' => array('age'=>8, 'sex'=>'F') ), 'CEO' ); echo http_build_query($data);
Output for git.master, git.master_jit, rfc.property-hooks
user%5Bname%5D=Bob+Smith&user%5Bage%5D=47.7&user%5Bsex%5D=M&user%5Bdo.b%5D=5%2F12%2F1956&user%5BisHuman%5D=0&pastimes%5B0%5D=golf&pastimes%5B1%5D=opera&pastimes%5B2%5D=poker&pastimes%5B3%5D=rap&children%5Bbobby%5D%5Bage%5D=12&children%5Bbobby%5D%5Bsex%5D=M&children%5Bsally%5D%5Bage%5D=8&children%5Bsally%5D%5Bsex%5D=F&0=CEO

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