3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://mysite.com/browse/department/?pid=1&order_by=a_z&filter=1"; print_r(parse_url($url)); print_r(explode("/",parse_url($url, PHP_URL_PATH)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gYDN5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmysite.com%2Fbrowse%2Fdepartment%2F%3Fpid%3D1%26order_by%3Da_z%26filter%3D1'
    3     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2F'
         10        INIT_FCALL                                               'parse_url'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 5
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1394 KiB | 19 Q