3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [0 => 1, 1 => 2, 2 => 3]; $b = [0 => 1, 2 => 3, 1 => 2]; echo '$a == $b: ', ($a == $b ? 'TRUE' : 'FALSE'), PHP_EOL; echo '$a === $b: ', ($a === $b ? 'TRUE' : 'FALSE'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/EZv8I
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ECHO                                                     '%24a+%3D%3D+%24b%3A+'
          3        IS_EQUAL                                                 !0, !1
          4      > JMPZ                                                     ~4, ->7
          5    >   QM_ASSIGN                                        ~5      'TRUE'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~5      'FALSE'
          8    >   ECHO                                                     ~5
          9        ECHO                                                     '%0A'
    7    10        ECHO                                                     '%24a+%3D%3D%3D+%24b%3A+'
         11        IS_IDENTICAL                                             !0, !1
         12      > JMPZ                                                     ~6, ->15
         13    >   QM_ASSIGN                                        ~7      'TRUE'
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~7      'FALSE'
         16    >   ECHO                                                     ~7
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.57 ms | 1394 KiB | 13 Q