3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!array_key_exists('deleted', $params)) { $params = array_merge($params, array('deleted' => null)); } // Is this not faster if (!array_key_exists('deleted', $params)) { $params['deleted'] = null; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/LIqXo
function name:  (null)
number of ops:  14
compiled vars:  !0 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ARRAY_KEY_EXISTS                                 ~1      'deleted', !0
          1        BOOL_NOT                                         ~2      ~1
          2      > JMPZ                                                     ~2, ->8
    4     3    >   INIT_FCALL                                               'array_merge'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    9     8    >   ARRAY_KEY_EXISTS                                 ~5      'deleted', !0
          9        BOOL_NOT                                         ~6      ~5
         10      > JMPZ                                                     ~6, ->13
   10    11    >   ASSIGN_DIM                                               !0, 'deleted'
         12        OP_DATA                                                  null
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.16 ms | 1394 KiB | 15 Q