3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(5, "43", 2, "10"); sort($a); var_dump($a); sort($a, SORT_NUMERIC); var_dump($a); sort($a, SORT_STRING); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CCugJ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'sort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'sort'
          8        SEND_REF                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'sort'
         15        SEND_REF                                                 !0
         16        SEND_VAL                                                 2
         17        DO_ICALL                                                 
    8    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:
160.51 ms | 1395 KiB | 17 Q