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) ) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 0 => 'http://www.yandex.ru', 1 => 200, 2 => 'some string', ), 1 => array ( 0 => 'http://www.mail.ru', 1 => 200, 2 => 'some other string', ), 2 => array ( 0 => 'http://www.google.com', 1 => 200, 2 => 'yet another string', ), )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
137.6 ms | 406 KiB | 5 Q