3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('1', '3', '2', '03', '01', '02'); echo "Sort regular:\n"; sort($arr); var_dump($arr); echo "Sort numeric:\n"; sort($arr, SORT_NUMERIC); var_dump($arr); echo "Sort binary:\n"; sort($arr, SORT_STRING); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WRVaU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ECHO                                                     'Sort+regular%3A%0A'
    5     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        ECHO                                                     'Sort+numeric%3A%0A'
    9     9        INIT_FCALL                                               'sort'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   12    16        ECHO                                                     'Sort+binary%3A%0A'
   13    17        INIT_FCALL                                               'sort'
         18        SEND_REF                                                 !0
         19        SEND_VAL                                                 2
         20        DO_ICALL                                                 
   14    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.84 ms | 1395 KiB | 17 Q