3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array('a', 'b', 'c'); $a2 = array('b', 'a', 'c'); sort($a1); sort($a2); echo $a1==$a2 ? 'y' : 'n';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eU8JV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'sort'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
          5        INIT_FCALL                                               'sort'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
    5     8        IS_EQUAL                                                 !0, !1
          9      > JMPZ                                                     ~6, ->12
         10    >   QM_ASSIGN                                        ~7      'y'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~7      'n'
         13    >   ECHO                                                     ~7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.08 ms | 1386 KiB | 15 Q