3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'Second', 'First', 'Twentieth', 'Tenth', 'Third', ); $b = array( '2 a', '1 b', '20 c', '10 d', '3 e', ); array_multisort($b, SORT_NATURAL, $a); var_dump($a, $b); array_multisort($b, SORT_LOCALE_STRING, $a); var_dump($a, $b); array_multisort($b, SORT_FLAG_CASE, $a); var_dump($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bPGta
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   18     2        INIT_FCALL                                               'array_multisort'
          3        SEND_REF                                                 !1
          4        SEND_VAL                                                 6
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
   20     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   22    11        INIT_FCALL                                               'array_multisort'
         12        SEND_REF                                                 !1
         13        SEND_VAL                                                 5
         14        SEND_REF                                                 !0
         15        DO_ICALL                                                 
   24    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   26    20        INIT_FCALL                                               'array_multisort'
         21        SEND_REF                                                 !1
         22        SEND_VAL                                                 8
         23        SEND_REF                                                 !0
         24        DO_ICALL                                                 
   28    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.19 ms | 1387 KiB | 17 Q