3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,-1,0,NULL,2,0,-2); $b = array(NULL,-1,0,1,2,-2, 0); $c = array(0,1,-1,0,-2,2,NULL); echo "asort(array(1,-1,0,NULL,2,0,-2))\n"; asort($a, SORT_STRING); print_r($a); echo "\nasort(array(NULL,-1,0,1,2,-2, 0))\n"; asort($b, SORT_STRING); print_r($b); echo "\nasort(array(0,1,-1,0,-2,2,NULL))\n"; asort($c, SORT_STRING); print_r($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lcavf
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        ECHO                                                     'asort%28array%281%2C-1%2C0%2CNULL%2C2%2C0%2C-2%29%29%0A'
    8     4        INIT_FCALL                                               'asort'
          5        SEND_REF                                                 !0
          6        SEND_VAL                                                 2
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        ECHO                                                     '%0Aasort%28array%28NULL%2C-1%2C0%2C1%2C2%2C-2%2C+0%29%29%0A'
   12    12        INIT_FCALL                                               'asort'
         13        SEND_REF                                                 !1
         14        SEND_VAL                                                 2
         15        DO_ICALL                                                 
   13    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   15    19        ECHO                                                     '%0Aasort%28array%280%2C1%2C-1%2C0%2C-2%2C2%2CNULL%29%29%0A'
   16    20        INIT_FCALL                                               'asort'
         21        SEND_REF                                                 !2
         22        SEND_VAL                                                 2
         23        DO_ICALL                                                 
   17    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.1 ms | 1395 KiB | 17 Q