3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab1 = array(10,13,15,18); $tab2 = array(13,10,18,23); $merge = array_intersect($tab1, $tab2); $merge2 = array_intersect($tab2, $tab1); echo '<pre>'.print_r($merge,true).'</pre>'; echo '<pre>'.print_r($merge2,true).'</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ACmv3
function name:  (null)
number of ops:  27
compiled vars:  !0 = $tab1, !1 = $tab2, !2 = $merge, !3 = $merge2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_intersect'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    6     7        INIT_FCALL                                               'array_intersect'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    8    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     '%3Cpre%3E', $10
         17        CONCAT                                           ~12     ~11, '%3C%2Fpre%3E'
         18        ECHO                                                     ~12
    9    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !3
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $13     
         23        CONCAT                                           ~14     '%3Cpre%3E', $13
         24        CONCAT                                           ~15     ~14, '%3C%2Fpre%3E'
         25        ECHO                                                     ~15
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.01 ms | 1395 KiB | 17 Q