3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = $array2 = array("index.html", "doc/index.html", "doc/test.html"); asort($array1); echo "Standard sorting\n"; print_r($array1); natsort($array2); echo "\nNatural order sorting\n"; print_r($array2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kXsDJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                           ~2      !1, <array>
          1        ASSIGN                                                   !0, ~2
    4     2        INIT_FCALL                                               'asort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    5     5        ECHO                                                     'Standard+sorting%0A'
    6     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'natsort'
         10        SEND_REF                                                 !1
         11        DO_ICALL                                                 
    9    12        ECHO                                                     '%0ANatural+order+sorting%0A'
   10    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.26 ms | 1394 KiB | 19 Q