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' ) ); sort($_upgradeKeys); $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/lEgJ4
function name:  (null)
number of ops:  16
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        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                                 
   19     9        ASSIGN                                                   !0, !1
   20    10        ASSIGN_DIM                                               !0
         11        OP_DATA                                                  'power-pack'
   22    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.44 ms | 1394 KiB | 19 Q