3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'string'; $b = 'string'; $tmp = array_unique(array($a, $b)); print_r($tmp); if (empty($tmp)) echo 'They match!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/v41F0
function name:  (null)
number of ops:  15
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
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
   10    11        ISSET_ISEMPTY_CV                                         !2
         12      > JMPZ                                                     ~9, ->14
   11    13    >   ECHO                                                     'They+match%21'
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.04 ms | 1394 KiB | 17 Q