3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ['1', '2']; $y = ['2', '1']; $z = ['1', '2', '4']; $n = [1, 2]; echo sort($x) === sort($y) ? 'y1' : 'n1'; echo sort($x) === sort($z) ? 'y2' : 'n2'; echo sort($x) === sort($n) ? 'y3' : 'n3';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
Branch analysis from position: 38
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
Branch analysis from position: 26
filename:       /in/AXJJ9
function name:  (null)
number of ops:  41
compiled vars:  !0 = $x, !1 = $y, !2 = $z, !3 = $n
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>
    6     3        ASSIGN                                                   !3, <array>
    8     4        INIT_FCALL                                               'sort'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $8      
          7        INIT_FCALL                                               'sort'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $9      
         10        IS_IDENTICAL                                             $8, $9
         11      > JMPZ                                                     ~10, ->14
         12    >   QM_ASSIGN                                        ~11     'y1'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~11     'n1'
         15    >   ECHO                                                     ~11
    9    16        INIT_FCALL                                               'sort'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                         $12     
         19        INIT_FCALL                                               'sort'
         20        SEND_REF                                                 !2
         21        DO_ICALL                                         $13     
         22        IS_IDENTICAL                                             $12, $13
         23      > JMPZ                                                     ~14, ->26
         24    >   QM_ASSIGN                                        ~15     'y2'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~15     'n2'
         27    >   ECHO                                                     ~15
   10    28        INIT_FCALL                                               'sort'
         29        SEND_REF                                                 !0
         30        DO_ICALL                                         $16     
         31        INIT_FCALL                                               'sort'
         32        SEND_REF                                                 !3
         33        DO_ICALL                                         $17     
         34        IS_IDENTICAL                                             $16, $17
         35      > JMPZ                                                     ~18, ->38
         36    >   QM_ASSIGN                                        ~19     'y3'
         37      > JMP                                                      ->39
         38    >   QM_ASSIGN                                        ~19     'n3'
         39    >   ECHO                                                     ~19
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.42 ms | 945 KiB | 16 Q