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) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/di5nH
function name:  (null)
number of ops:  21
compiled vars:  !0 = $input, !1 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'var_export'
   16     3        INIT_FCALL                                               'array_values'
   17     4        INIT_FCALL                                               'array_replace'
   18     5        INIT_FCALL                                               'array_flip'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
   19     9        INIT_FCALL                                               'array_column'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 null
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
   17    15        DO_ICALL                                         $6      
   19    16        SEND_VAR                                                 $6
   16    17        DO_ICALL                                         $7      
   19    18        SEND_VAR                                                 $7
   15    19        DO_ICALL                                                 
   22    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.56 ms | 1001 KiB | 18 Q