3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = $arr2 = array( /* 1 */ array( 'A' , 'C' , 'B' ), /* 2 */ array( 'B' , 'A' , 'C' ), ); usort($arr1, 'natsort'); var_dump($arr1); foreach ($arr2 as &$a) { sort($a); } var_dump($arr2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 126) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/3VKKu
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~3      !1, <array>
          1        ASSIGN                                                   !0, ~3
    7     2        INIT_FCALL                                               'usort'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 'natsort'
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   10     9      > FE_RESET_RW                                      $7      !1, ->15
         10    > > FE_FETCH_RW                                              $7, !2, ->15
   11    11    >   INIT_FCALL                                               'sort'
         12        SEND_REF                                                 !2
         13        DO_ICALL                                                 
   10    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $7
   13    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.15 ms | 1395 KiB | 19 Q