3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = explode(" ", $str1); $array_2 = explode(" ", $str1); echo count(array_diff($array_1, $array_2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wkj9Q
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array_1, !1 = $str1, !2 = $array_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        SEND_VAR                                                 !1
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '+'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !2, $5
    4    10        INIT_FCALL                                               'array_diff'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $7      
         14        COUNT                                            ~8      $7
         15        ECHO                                                     ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1394 KiB | 17 Q