3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = [55995,55996,55999,56000,56005,56006,56007,56008,56021,56022,56023,56024,56029,56030,56031,56032,56036,56037]; $two = [56015,56016,56014,56018,56019,56020,55994,55995,55996,55997,55998,55999,56000,56001,56002,56003,56005,56004,56006,56007,56008,56009,56010,56011,56012,56013,56017,56021,56022,56023,56024,56025,56026,56027,56028,56029,56030,56031,56032,56033,56034,56035,56036,56037,56038,56039,56040,56041,60434,60435]; $diff_one_two = array_diff($one, $two); $diff_two_one = array_diff($two, $one); print_r($diff_one_two); print_r($diff_two_one);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MaGdY
function name:  (null)
number of ops:  19
compiled vars:  !0 = $one, !1 = $two, !2 = $diff_one_two, !3 = $diff_two_one
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_diff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'array_diff'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    9    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.7 ms | 1010 KiB | 15 Q