3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export([ // string, then times '0:1' => str_repeat(0, 1), // '0' '1:0' => str_repeat(1, 0), // '' '0:0' => str_repeat(0, 0), // '' '1:1' => str_repeat(1, 1), // '1' ]); echo "\n---\n"; $params = [ ['one' => 0, 'two' => 1, 'three' => 0, 'four' => 1], // strings ['three' => 0, 'one' => 1, 'four' => 1, 'two' => 0], // times 'str_repeat' ]; var_export([ 'udiff' => array_udiff_assoc(...$params), 'uintersect' => array_uintersect_assoc(...$params), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/072Bh
function name:  (null)
number of ops:  39
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
    5     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $1      
          5        INIT_ARRAY                                       ~2      $1, '0%3A1'
    6     6        INIT_FCALL                                               'str_repeat'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 0
          9        DO_ICALL                                         $3      
         10        ADD_ARRAY_ELEMENT                                ~2      $3, '1%3A0'
    7    11        INIT_FCALL                                               'str_repeat'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 0
         14        DO_ICALL                                         $4      
         15        ADD_ARRAY_ELEMENT                                ~2      $4, '0%3A0'
    8    16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 1
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $5      
         20        ADD_ARRAY_ELEMENT                                ~2      $5, '1%3A1'
         21        SEND_VAL                                                 ~2
    3    22        DO_ICALL                                                 
   11    23        ECHO                                                     '%0A---%0A'
   13    24        ASSIGN                                                   !0, <array>
   19    25        INIT_FCALL                                               'var_export'
   20    26        INIT_FCALL                                               'array_udiff_assoc'
         27        SEND_UNPACK                                              !0
         28        CHECK_UNDEF_ARGS                                         
         29        DO_ICALL                                         $8      
         30        INIT_ARRAY                                       ~9      $8, 'udiff'
   21    31        INIT_FCALL                                               'array_uintersect_assoc'
         32        SEND_UNPACK                                              !0
         33        CHECK_UNDEF_ARGS                                         
         34        DO_ICALL                                         $10     
         35        ADD_ARRAY_ELEMENT                                ~9      $10, 'uintersect'
         36        SEND_VAL                                                 ~9
   19    37        DO_ICALL                                                 
   22    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.21 ms | 1002 KiB | 17 Q