3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$queryString = $_SERVER['QUERY_STRING']; $queryString = 'token=abc+def'; $part1 = explode('=', $queryString)[0]; $part2 = urlencode(explode('=', $queryString)[1]); $string = $part1 . '=' . $part2; parse_str($string,$result); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lDGpJ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $queryString, !1 = $part1, !2 = $part2, !3 = $string, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'token%3Dabc%2Bdef'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3D'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        FETCH_DIM_R                                      ~7      $6, 0
          6        ASSIGN                                                   !1, ~7
    7     7        INIT_FCALL                                               'urlencode'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3D'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $9      
         12        FETCH_DIM_R                                      ~10     $9, 1
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !2, $11
    8    16        CONCAT                                           ~13     !1, '%3D'
         17        CONCAT                                           ~14     ~13, !2
         18        ASSIGN                                                   !3, ~14
    9    19        INIT_FCALL                                               'parse_str'
         20        SEND_VAR                                                 !3
         21        SEND_REF                                                 !4
         22        DO_ICALL                                                 
   11    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.81 ms | 1395 KiB | 21 Q