3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ 'http://www.yandex.ru', 'http://www.mail.ru', 'http://www.google.com' ]; $response = [ ['http://www.mail.ru', 200, 'some other string'], ['http://www.yandex.ru', 200, 'some string'], ['http://www.google.com', 200, 'yet another string'] ]; var_export( array_values( array_replace( array_flip($input), array_column($response, null, 0) ) ) );

preferences:
25.65 ms | 408 KiB | 5 Q