3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = [ 'https://google.com/', 'https://bing.com/' ]; $names = [ 'Google', 'Bing' ]; echo json_encode( array_map( fn($url, $name) => get_defined_vars(), $urls, $names ), JSON_PRETTY_PRINT );

preferences:
24.45 ms | 406 KiB | 5 Q