3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options['fields'] = array( 'Doctor.id', 'Doctor.email', 'Doctor.name', 'Doctor.surname', 'Doctor.created', 'Doctor.profileimg', 'Doctor.list_experiencia_professional', 'Doctor.logros_academicos', 'Doctor.premios_reconocimientos', 'Doctor.status', 'Doctor.type_doctor', 'Doctor.sexo', 'Doctor.accepted_politics_wallet', 'Doctor.accepted_social_politics', 'DoctorsProducts.id_product', 'Address.phone', 'Address.info_consulta', 'DoctorsProducts.status', 'AddressesAgenda.address_id'); if (($key = array_search('Doctor.accepted_politics_wallet', $options['fields'])) !== false) { unset($options['fields'][$key]); } print_r($options);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/nkQZt
function name:  (null)
number of ops:  16
compiled vars:  !0 = $options, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'fields'
    3     1        OP_DATA                                                  <array>
   24     2        INIT_FCALL                                               'array_search'
          3        SEND_VAL                                                 'Doctor.accepted_politics_wallet'
          4        FETCH_DIM_R                                      ~3      !0, 'fields'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                           ~5      !1, $4
          8        TYPE_CHECK                                  1018          ~5
          9      > JMPZ                                                     ~6, ->12
   25    10    >   FETCH_DIM_UNSET                                  $7      !0, 'fields'
         11        UNSET_DIM                                                $7, !1
   28    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.51 ms | 1010 KiB | 15 Q