3v4l.org

run code in 300+ PHP versions simultaneously
<?php $theAction = 'anything'; $site = 1; $mappings = array("1"=>"https://test1.com/?na=ajaxsub", "2"=>"https://test2.com/?na=ajaxsub", "3"=>"https://test3.com/?na=ajaxsub", "4"=>"https://test4.com/?na=ajaxsub"); if ($theAction == 'unsubscribe') { $url = "https://test5.com/unsubscribe.php"; } else { $url = $mappings[$site]; } echo $url;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Nfb5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $theAction, !1 = $site, !2 = $mappings, !3 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'anything'
    4     1        ASSIGN                                                   !1, 1
    6     2        ASSIGN                                                   !2, <array>
    8     3        IS_EQUAL                                                 !0, 'unsubscribe'
          4      > JMPZ                                                     ~7, ->7
    9     5    >   ASSIGN                                                   !3, 'https%3A%2F%2Ftest5.com%2Funsubscribe.php'
    8     6      > JMP                                                      ->9
   12     7    >   FETCH_DIM_R                                      ~9      !2, !1
          8        ASSIGN                                                   !3, ~9
   15     9    >   ECHO                                                     !3
   16    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.7 ms | 996 KiB | 13 Q