3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs = [ "some string", "another string", ]; $result = array_map(null, $strs, array_fill(0, sizeof($strs), true)); var_dump($result);

preferences:
14.75 ms | 406 KiB | 5 Q