3v4l.org

run code in 300+ PHP versions simultaneously
<?php function kvp ($k, $v) { print "$k = $v;\n"; } $p = ['foo' => 'fooVALUE', 'bar' => 'barVALUE']; array_map(var_dump(...), $p); print "---\n"; array_map(var_dump(...), array_keys($p), array_values($p)); print "---\n"; array_map(kvp(...), array_keys($p), $p);
Output for rfc.property-hooks, git.master, git.master_jit
string(8) "fooVALUE" string(8) "barVALUE" --- string(3) "foo" string(8) "fooVALUE" string(3) "bar" string(8) "barVALUE" --- foo = fooVALUE; bar = barVALUE;

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:
46.83 ms | 1039 KiB | 4 Q