3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3); $b = array(1,2,3); $f = array(2,3,4); $c = array(array_merge($a, $b, $f)); $d = array_unique($c); var_dump($d);
based on Iuu11
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/mJBur
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $f, !3 = $c, !4 = $d
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   4     1        ASSIGN                                                   !1, <array>
   5     2        ASSIGN                                                   !2, <array>
   6     3        INIT_FCALL                                               'array_merge'
         4        SEND_VAR                                                 !0
         5        SEND_VAR                                                 !1
         6        SEND_VAR                                                 !2
         7        DO_ICALL                                         $8      
         8        INIT_ARRAY                                       ~9      $8
         9        ASSIGN                                                   !3, ~9
   9    10        INIT_FCALL                                               'array_unique'
        11        SEND_VAR                                                 !3
        12        DO_ICALL                                         $11     
        13        ASSIGN                                                   !4, $11
  11    14        INIT_FCALL                                               'var_dump'
        15        SEND_VAR                                                 !4
        16        DO_ICALL                                                 
        17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0