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 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
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 )

preferences:
105.28 ms | 407 KiB | 5 Q