3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $uri = "http://fashion/ru/items/2?sort%5B%5D=1&str%5B%5D=4&curs%5B%5D=1&page=2&page=1&page=2&page=5&page=4&page=3&page=2&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&page=1&tesdsd=2"; function ggp($url) { // get GET-parameters string preg_match('/^([^?]+)(\?.*?)?(#.*)?$/', $url, $matches); $gp = (isset($matches[2])) ? $matches[2] : ''; return $gp; } function deleted($url) { // get GET-parameters string preg_match('/^([^&page=]+)(*)$/', $url, $matches); return $matches; } echo ggp($uri); echo"<br>"; var_dump(deleted($uri));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iqqrV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $uri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ffashion%2Fru%2Fitems%2F2%3Fsort%255B%255D%3D1%26str%255B%255D%3D4%26curs%255B%255D%3D1%26page%3D2%26page%3D1%26page%3D2%26page%3D5%26page%3D4%26page%3D3%26page%3D2%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26page%3D1%26tesdsd%3D2'
   17     1        INIT_FCALL                                               'ggp'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
   18     5        ECHO                                                     '%3Cbr%3E'
   19     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'deleted'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0  $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function ggp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iqqrV
function name:  ggp
number of ops:  15
compiled vars:  !0 = $url, !1 = $matches, !2 = $gp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5B%5E%3F%5D%2B%29%28%5C%3F.%2A%3F%29%3F%28%23.%2A%29%3F%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 2
          7      > JMPZ                                                     ~4, ->11
          8    >   FETCH_DIM_R                                      ~5      !1, 2
          9        QM_ASSIGN                                        ~6      ~5
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~6      ''
         12    >   ASSIGN                                                   !2, ~6
    8    13      > RETURN                                                   !2
    9    14*     > RETURN                                                   null

End of function ggp

Function deleted:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iqqrV
function name:  deleted
number of ops:  8
compiled vars:  !0 = $url, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28%5B%5E%26page%3D%5D%2B%29%28%2A%29%24%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   14     6      > RETURN                                                   !1
   15     7*     > RETURN                                                   null

End of function deleted

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1394 KiB | 19 Q