3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = ['John', 'Brian', 'Raj']; $salary = ['500', '1000', '2000']; $dpart = ['HTML', 'CSS', 'PHP']; $address = ['Floor 3', 'Floor 5', 'Floor 6']; print_r( array_map( fn(...$col) => vsprintf("%s's salary is %d, depart is %s, address is %s", $col), $name, $salary, $dpart, $address ) );
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => John's salary is 500, depart is HTML, address is Floor 3 [1] => Brian's salary is 1000, depart is CSS, address is Floor 5 [2] => Raj's salary is 2000, depart is PHP, address is Floor 6 )

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:
84.31 ms | 406 KiB | 5 Q