3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://gathering.tweakers.net/forum/list_messages/1713925 startpost $first = ['id'=> 'int(6) unsigned', 'text' => 'longtext', 'add' => 'varchar(255)']; $second = ['id'=> 'int(6) unsigned', 'user_id'=> 'int(11)', 'text' => 'text']; var_dump(array_diff_assoc($first, $second)); var_dump(array_diff_assoc($second, $first)); var_dump(array_diff_key($first, $second)); var_dump(array_diff_key($second, $first));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hPlW
function name:  (null)
number of ops:  31
compiled vars:  !0 = $first, !1 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
    8     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_diff_assoc'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'array_diff_assoc'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
   10    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'array_diff_key'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
   11    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'array_diff_key'
         25        SEND_VAR                                                 !1
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $10     
         28        SEND_VAR                                                 $10
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.65 ms | 1002 KiB | 16 Q