3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hubspot_country = 'US'; $country_map = array('US' => 'United States'); $address_part = 'country'; $admin_contact_information = array(); isset($country_map[$hubspot_country]) ? $admin_contact_information[$address_part] = $country_map[$hubspot_country] : '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 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4TpTD
function name:  (null)
number of ops:  18
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, 'US'
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 'country'
    5     3        ASSIGN                                                   !3, <array>
    6     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                                                      ->12
         11    >   QM_ASSIGN                                        ~11     'US'
         12    >   FREE                                                     ~11
    7    13        INIT_FCALL                                               'var_dump'
         14        FETCH_DIM_R                                      ~12     !3, !2
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                                 
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1395 KiB | 15 Q