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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1400 KiB | 17 Q