3v4l.org

run code in 300+ PHP versions simultaneously
<?php $packed = array(0,1,2,3,4,5,'six','seven',8,9,10,'eleven',12); $ksort = $packed; ksort($ksort); $krsort = $packed; krsort($krsort); var_dump($ksort === $packed); var_dump($krsort === $packed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TMvC4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $packed, !1 = $ksort, !2 = $krsort
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, !0
    6     2        INIT_FCALL                                               'ksort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    8     5        ASSIGN                                                   !2, !0
    9     6        INIT_FCALL                                               'krsort'
          7        SEND_REF                                                 !2
          8        DO_ICALL                                                 
   11     9        INIT_FCALL                                               'var_dump'
         10        IS_IDENTICAL                                     ~8      !1, !0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'var_dump'
         14        IS_IDENTICAL                                     ~10     !2, !0
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.94 ms | 1398 KiB | 19 Q