3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array('0' => 'John', '1' => 'George', '2' => 'James', '3' => 'Harry'); $arr2 = array('0' => '12', '1' => '8', '2' => '34', '3' => '23'); arsort($arr2); var_dump(array_replace($arr2,$arr1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FVIsd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'arsort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_replace'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.91 ms | 1006 KiB | 16 Q