3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 'Super red Megaman T-shirt', 'Super Megaman blue T-shirt', 'Super black Megaman T-shirt', 'Super Megaman T-shirt - aquamarine', ); foreach ($test as $item) { $prodCompare[] = str_split($item); } var_dump(join(array_intersect($prodCompare[0], ...$prodCompare)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/RvFFP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $test, !1 = $item, !2 = $prodCompare
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_R                                       $4      !0, ->9
          2    > > FE_FETCH_R                                               $4, !1, ->9
   11     3    >   INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN_DIM                                               !2
          7        OP_DATA                                                  $6
   10     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $4
   14    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'join'
         12        INIT_FCALL                                               'array_intersect'
         13        FETCH_DIM_R                                      ~7      !2, 0
         14        SEND_VAL                                                 ~7
         15        SEND_UNPACK                                              !2
         16        CHECK_UNDEF_ARGS                                         
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.02 ms | 1013 KiB | 17 Q