3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrSorted = array( array("sort" => "7", "name" => "Test"), array("sort" => "1", "name" => "Test 2"), array("sort" => "3", "name" => "Test 3"), array("sort" => "5", "name" => "Test 4"), array("sort" => "7", "name" => "Test 4")); $arrNotSorted = array(5,3,7,1); $arrResultSetTmpSorted = array_intersect_key( array_values(arrSorted), array_keys($arrNotSorted) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T8Tb3
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arrSorted, !1 = $arrNotSorted, !2 = $arrResultSetTmpSorted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'array_intersect_key'
          3        INIT_FCALL                                               'array_values'
          4        FETCH_CONSTANT                                   ~5      'arrSorted'
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.68 ms | 1398 KiB | 19 Q