3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'string'; $b = 'string'; $tmp = array_unique(array($a, $b)); if (-count($tmp)+2) echo 'They match!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/5bS3Z
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'string'
    4     1        ASSIGN                                                   !1, 'string'
    6     2        INIT_FCALL                                               'array_unique'
          3        INIT_ARRAY                                       ~5      !0
          4        ADD_ARRAY_ELEMENT                                ~5      !1
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
   10     8        COUNT                                            ~8      !2
          9        MUL                                              ~9      ~8, -1
         10        ADD                                              ~10     ~9, 2
         11      > JMPZ                                                     ~10, ->13
   11    12    >   ECHO                                                     'They+match%21'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152 ms | 1394 KiB | 15 Q