3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old_url = url_encode("http://localhost/myweb/search?q=anything"); $new_url = "http://localhost/login?destination=" . $old_url; //after everything login and all $destination = url_decode($_GET['destination']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/93KIs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $old_url, !1 = $new_url, !2 = $destination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'url_encode'
          1        SEND_VAL_EX                                              'http%3A%2F%2Flocalhost%2Fmyweb%2Fsearch%3Fq%3Danything'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
    4     4        CONCAT                                           ~5      'http%3A%2F%2Flocalhost%2Flogin%3Fdestination%3D', !0
          5        ASSIGN                                                   !1, ~5
    8     6        INIT_FCALL_BY_NAME                                       'url_decode'
          7        CHECK_FUNC_ARG                                           
          8        FETCH_FUNC_ARG               global              $7      '_GET'
          9        FETCH_DIM_FUNC_ARG                               $8      $7, 'destination'
         10        SEND_FUNC_ARG                                            $8
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !2, $9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.62 ms | 1384 KiB | 13 Q