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/mA0Yq
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ECHO                                                     'Sort+regular%3A%0A'
    6     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    9     8        ECHO                                                     'Sort+numeric%3A%0A'
   10     9        INIT_FCALL                                               'sort'
         10        SEND_REF                                                 !0
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
   11    13        ECHO                                                     'Sort+binary%3A%0A'
         14        INIT_FCALL                                               'sort'
         15        SEND_REF                                                 !0
         16        SEND_VAL                                                 2
         17        DO_ICALL                                                 
         18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1395 KiB | 17 Q