3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://findadvertisers.linksynergy.com/merchantsearch"; $tok = "?token="; $merch = "&merchantname="; $id = "a74fv65abc123"; $name = null; $absolute = $url . $tok . $id . $merch . $name; $abs_arr = preg_split("/[:\/\.\?\=\&]+/", $absolute); $abs_arr_len = sizeof(abs_arr); if ($abs_arr[$abs_arr_len-1] == null) { print "It's null!"; } else { print "It's not null!"; } print $abs_arr[$abs_arr_len-1]; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/veqdY
function name:  (null)
number of ops:  29
compiled vars:  !0 = $url, !1 = $tok, !2 = $merch, !3 = $id, !4 = $name, !5 = $absolute, !6 = $abs_arr, !7 = $abs_arr_len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ffindadvertisers.linksynergy.com%2Fmerchantsearch'
    3     1        ASSIGN                                                   !1, '%3Ftoken%3D'
    4     2        ASSIGN                                                   !2, '%26merchantname%3D'
    5     3        ASSIGN                                                   !3, 'a74fv65abc123'
    6     4        ASSIGN                                                   !4, null
    8     5        CONCAT                                           ~13     !0, !1
          6        CONCAT                                           ~14     ~13, !3
          7        CONCAT                                           ~15     ~14, !2
          8        CONCAT                                           ~16     ~15, !4
          9        ASSIGN                                                   !5, ~16
    9    10        INIT_FCALL                                               'preg_split'
         11        SEND_VAL                                                 '%2F%5B%3A%5C%2F%5C.%5C%3F%5C%3D%5C%26%5D%2B%2F'
         12        SEND_VAR                                                 !5
         13        DO_ICALL                                         $18     
         14        ASSIGN                                                   !6, $18
   10    15        FETCH_CONSTANT                                   ~20     'abs_arr'
         16        COUNT                                            ~21     ~20
         17        ASSIGN                                                   !7, ~21
   12    18        SUB                                              ~23     !7, 1
         19        FETCH_DIM_R                                      ~24     !6, ~23
         20        IS_EQUAL                                                 ~24, null
         21      > JMPZ                                                     ~25, ->24
   13    22    >   ECHO                                                     'It%27s+null%21'
         23      > JMP                                                      ->25
   15    24    >   ECHO                                                     'It%27s+not+null%21'
   17    25    >   SUB                                              ~26     !7, 1
         26        FETCH_DIM_R                                      ~27     !6, ~26
         27        ECHO                                                     ~27
   18    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.58 ms | 1396 KiB | 15 Q