3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'jenny'; $str2 = 'jenny'; $str1chars = array_unique(str_split($str1)); $str2chars = array_unique(str_split($str2)); $matches = array_intersect($str1chars, $str2chars); if(count($str1chars) === count($matches)){ echo "Bingo!"; }else{ echo "Nope :("; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0eeOn
function name:  (null)
number of ops:  29
compiled vars:  !0 = $str1, !1 = $str2, !2 = $str1chars, !3 = $str2chars, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'jenny'
    4     1        ASSIGN                                                   !1, 'jenny'
    6     2        INIT_FCALL                                               'array_unique'
          3        INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        SEND_VAR                                                 $7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !2, $8
    7     9        INIT_FCALL                                               'array_unique'
         10        INIT_FCALL                                               'str_split'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !3, $11
    8    16        INIT_FCALL                                               'array_intersect'
         17        SEND_VAR                                                 !2
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                         $13     
         20        ASSIGN                                                   !4, $13
   10    21        COUNT                                            ~15     !2
         22        COUNT                                            ~16     !4
         23        IS_IDENTICAL                                             ~15, ~16
         24      > JMPZ                                                     ~17, ->27
   11    25    >   ECHO                                                     'Bingo%21'
   10    26      > JMP                                                      ->28
   13    27    >   ECHO                                                     'Nope+%3A%28'
   14    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.94 ms | 1001 KiB | 16 Q