3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('samlp:aExtensions', null, array('ext:aReferer', null, array('ext:aRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"), array('ext:aRefererHost', null, $_SERVER["SERVER_NAME"]), array('ext:aRefererPort', null, $_SERVER["SERVER_PORT"]), ), ); $b = array('samlp:bExtensions', null, array('ext:bReferer', null, array('ext:bRefererScheme', null, "on" == $_SERVER["HTTPS"] ? "https" : "http"), array('ext:bRefererHost', null, $_SERVER["SERVER_NAME"]), array('ext:bRefererPort', null, $_SERVER["SERVER_PORT"]), ), ); $c = array_merge($a, $b); var_dump($c);
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 = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
Branch analysis from position: 41
filename:       /in/va9OQ
function name:  (null)
number of ops:  67
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~3      'samlp%3AaExtensions'
          1        ADD_ARRAY_ELEMENT                                ~3      null
    3     2        INIT_ARRAY                                       ~4      'ext%3AaReferer'
    2     3        ADD_ARRAY_ELEMENT                                ~4      null
    4     4        INIT_ARRAY                                       ~5      'ext%3AaRefererScheme'
    2     5        ADD_ARRAY_ELEMENT                                ~5      null
    4     6        FETCH_R                      global              ~6      '_SERVER'
          7        FETCH_DIM_R                                      ~7      ~6, 'HTTPS'
          8        IS_EQUAL                                                 ~7, 'on'
          9      > JMPZ                                                     ~8, ->12
         10    >   QM_ASSIGN                                        ~9      'https'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~9      'http'
         13    >   ADD_ARRAY_ELEMENT                                ~5      ~9
         14        ADD_ARRAY_ELEMENT                                ~4      ~5
    5    15        INIT_ARRAY                                       ~10     'ext%3AaRefererHost'
    2    16        ADD_ARRAY_ELEMENT                                ~10     null
    5    17        FETCH_R                      global              ~11     '_SERVER'
         18        FETCH_DIM_R                                      ~12     ~11, 'SERVER_NAME'
         19        ADD_ARRAY_ELEMENT                                ~10     ~12
         20        ADD_ARRAY_ELEMENT                                ~4      ~10
    6    21        INIT_ARRAY                                       ~13     'ext%3AaRefererPort'
    2    22        ADD_ARRAY_ELEMENT                                ~13     null
    6    23        FETCH_R                      global              ~14     '_SERVER'
         24        FETCH_DIM_R                                      ~15     ~14, 'SERVER_PORT'
         25        ADD_ARRAY_ELEMENT                                ~13     ~15
         26        ADD_ARRAY_ELEMENT                                ~4      ~13
         27        ADD_ARRAY_ELEMENT                                ~3      ~4
    2    28        ASSIGN                                                   !0, ~3
    9    29        INIT_ARRAY                                       ~17     'samlp%3AbExtensions'
         30        ADD_ARRAY_ELEMENT                                ~17     null
   10    31        INIT_ARRAY                                       ~18     'ext%3AbReferer'
    9    32        ADD_ARRAY_ELEMENT                                ~18     null
   11    33        INIT_ARRAY                                       ~19     'ext%3AbRefererScheme'
    9    34        ADD_ARRAY_ELEMENT                                ~19     null
   11    35        FETCH_R                      global              ~20     '_SERVER'
         36        FETCH_DIM_R                                      ~21     ~20, 'HTTPS'
         37        IS_EQUAL                                                 ~21, 'on'
         38      > JMPZ                                                     ~22, ->41
         39    >   QM_ASSIGN                                        ~23     'https'
         40      > JMP                                                      ->42
         41    >   QM_ASSIGN                                        ~23     'http'
         42    >   ADD_ARRAY_ELEMENT                                ~19     ~23
         43        ADD_ARRAY_ELEMENT                                ~18     ~19
   12    44        INIT_ARRAY                                       ~24     'ext%3AbRefererHost'
    9    45        ADD_ARRAY_ELEMENT                                ~24     null
   12    46        FETCH_R                      global              ~25     '_SERVER'
         47        FETCH_DIM_R                                      ~26     ~25, 'SERVER_NAME'
         48        ADD_ARRAY_ELEMENT                                ~24     ~26
         49        ADD_ARRAY_ELEMENT                                ~18     ~24
   13    50        INIT_ARRAY                                       ~27     'ext%3AbRefererPort'
    9    51        ADD_ARRAY_ELEMENT                                ~27     null
   13    52        FETCH_R                      global              ~28     '_SERVER'
         53        FETCH_DIM_R                                      ~29     ~28, 'SERVER_PORT'
         54        ADD_ARRAY_ELEMENT                                ~27     ~29
         55        ADD_ARRAY_ELEMENT                                ~18     ~27
         56        ADD_ARRAY_ELEMENT                                ~17     ~18
    9    57        ASSIGN                                                   !1, ~17
   16    58        INIT_FCALL                                               'array_merge'
         59        SEND_VAR                                                 !0
         60        SEND_VAR                                                 !1
         61        DO_ICALL                                         $31     
         62        ASSIGN                                                   !2, $31
   17    63        INIT_FCALL                                               'var_dump'
         64        SEND_VAR                                                 !2
         65        DO_ICALL                                                 
         66      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1400 KiB | 17 Q