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 ) );

preferences:
27.23 ms | 406 KiB | 5 Q