3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(1,1,0,0); $array2 = array(2,0,0,1); $array1 = sort($array1); $array2 = sort($array2); echo ($array1 === $array2) ? 'yes' : 'no';
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z34iA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array1, !1 = $array2
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                                         $4      
          5        ASSIGN                                                   !0, $4
    5     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    6    10        IS_IDENTICAL                                             !0, !1
         11      > JMPZ                                                     ~8, ->14
         12    >   QM_ASSIGN                                        ~9      'yes'
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~9      'no'
         15    >   ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.35 ms | 1394 KiB | 15 Q