3v4l.org

run code in 300+ PHP versions simultaneously
<?php $selected=array('11a_Ma1','11a_Sc2','11b_Ls1'); $already=array('11SJP','11a_Ma1','11a_Sc2'); print_r(array_diff($selected,$already)); print_r(array_diff($already,$selected)); $a1=array(1,2,3); $a2=array(1,2,3); print_r(array_diff($a1,$a2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JTsvN
function name:  (null)
number of ops:  26
compiled vars:  !0 = $selected, !1 = $already, !2 = $a1, !3 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_diff'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_diff'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
    6    16        ASSIGN                                                   !2, <array>
    7    17        ASSIGN                                                   !3, <array>
    8    18        INIT_FCALL                                               'print_r'
         19        INIT_FCALL                                               'array_diff'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $12     
         23        SEND_VAR                                                 $12
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.65 ms | 1386 KiB | 17 Q