3v4l.org

run code in 300+ PHP versions simultaneously
<?php $unique = ''; foreach (array_count_values(str_split('abclkjabc')) as $char => $count) { if ($count === 1) { $unique .= $char; } } echo $unique;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/XBS5K
function name:  (null)
number of ops:  17
compiled vars:  !0 = $unique, !1 = $count, !2 = $char
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        INIT_FCALL                                               'array_count_values'
          2        INIT_FCALL                                               'str_split'
          3        SEND_VAL                                                 'abclkjabc'
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7      > FE_RESET_R                                       $6      $5, ->14
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->14
          9    >   ASSIGN                                                   !2, ~7
    5    10        IS_IDENTICAL                                             !1, 1
         11      > JMPZ                                                     ~9, ->13
    6    12    >   ASSIGN_OP                                     8          !0, !2
    4    13    > > JMP                                                      ->8
         14    >   FE_FREE                                                  $6
    9    15        ECHO                                                     !0
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.54 ms | 989 KiB | 15 Q