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'); array_multisort($arr2,SORT_DESC,$arr1); echo '<pre>'; print_r($arr2); print_r($arr1); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3BWTC
function name:  (null)
number of ops:  16
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>
    5     2        INIT_FCALL                                               'array_multisort'
          3        SEND_REF                                                 !1
          4        SEND_VAL                                                 3
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    7     7        ECHO                                                     '%3Cpre%3E'
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   10    14        ECHO                                                     '%3C%2Fpre%3E'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.33 ms | 1010 KiB | 15 Q