3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 12345; $b = 98754; $a = str_split($a); $b = str_split($b); $matching = array_intersect($a, $b); Var_dump($matching);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tS3q
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $matching
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 12345
    4     1        ASSIGN                                                       !1, 98754
    6     2        INIT_FCALL                                                   'str_split'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $5      
          5        ASSIGN                                                       !0, $5
    7     6        INIT_FCALL                                                   'str_split'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                             $7      
          9        ASSIGN                                                       !1, $7
    9    10        INIT_FCALL                                                   'array_intersect'
         11        SEND_VAR                                                     !0
         12        SEND_VAR                                                     !1
         13        DO_ICALL                                             $9      
         14        ASSIGN                                                       !2, $9
   10    15        INIT_FCALL                                                   'var_dump'
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.19 ms | 2056 KiB | 16 Q