3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); $bar = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf'); $quux = array('a' => 1, 'aaa' => 2, 'aa' => 3); ksort($foo); ksort($quux, 'SORT_LOCALE_STRING'); ksort($bar, 'SORT_LOCALE_STRING'); var_dump($quux); var_dump($foo == $bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iv0Rg
function name:  (null)
number of ops:  22
compiled vars:  !0 = $foo, !1 = $bar, !2 = $quux
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_FCALL                                               'ksort'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'ksort'
          7        SEND_REF                                                 !2
          8        SEND_VAL                                                 'SORT_LOCALE_STRING'
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'ksort'
         11        SEND_REF                                                 !1
         12        SEND_VAL                                                 'SORT_LOCALE_STRING'
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        IS_EQUAL                                         ~10     !0, !1
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1386 KiB | 17 Q