3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'United States'; $country_map = array('United States' => 'US'); $address_part = 'country'; $admin_contact_information = array(); // empty($arg['signup_source']) ? $signup_source = '' : $signup_source = $arg['signup_source']; isset($country_map[$hubspot_country]) ? $admin_contact_information[$address_part] = $country_map[$hubspot_country] : $admin_contact_information[$address_part] = 'US'; var_dump($admin_contact_information[$address_part]); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GOAFQ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $hubspot_country, !1 = $country_map, !2 = $address_part, !3 = $admin_contact_information
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'United+States'
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 'country'
    5     3        ASSIGN                                                   !3, <array>
    7     4        ISSET_ISEMPTY_DIM_OBJ                         0          !1, !0
          5      > JMPZ                                                     ~8, ->11
          6    >   FETCH_DIM_R                                      ~10     !1, !0
          7        ASSIGN_DIM                                       ~9      !3, !2
          8        OP_DATA                                                  ~10
          9        QM_ASSIGN                                        ~11     ~9
         10      > JMP                                                      ->14
         11    >   ASSIGN_DIM                                       ~12     !3, !2
         12        OP_DATA                                                  'US'
         13        QM_ASSIGN                                        ~11     ~12
         14    >   FREE                                                     ~11
    8    15        INIT_FCALL                                               'var_dump'
         16        FETCH_DIM_R                                      ~13     !3, !2
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                                 
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.48 ms | 1395 KiB | 15 Q