3v4l.org

run code in 300+ PHP versions simultaneously
<?php $upgradeKeys = array( 'featured-listing', 'basic-pack', 'designer-blog', 'power-pack' ); $_upgradeKeys = array_diff( $upgradeKeys, array( 'featured-listing', 'basic-pack', 'designer-blog', 'power-pack' ) ); $upgradeKeys = $_upgradeKeys; $upgradeKeys[] = 'power-pack'; print_r($upgradeKeys);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P3tEe
function name:  (null)
number of ops:  13
compiled vars:  !0 = $upgradeKeys, !1 = $_upgradeKeys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_diff'
    9     2        SEND_VAR                                                 !0
   11     3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $3      
    8     5        ASSIGN                                                   !1, $3
   18     6        ASSIGN                                                   !0, !1
   19     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  'power-pack'
   21     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.19 ms | 1394 KiB | 17 Q