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'; echo upgradeKeys[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nSCXb
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        FETCH_CONSTANT                                   ~8      'upgradeKeys'
         13        FETCH_DIM_R                                      ~9      ~8, 0
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1394 KiB | 17 Q