3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('display_errors', TRUE); print_r(parse_url('/path/?query')); print_r(parse_url('/path')); print_r(parse_url('?query=string')); print_r(parse_url('?query')); print_r(parse_url('query')); print_r(parse_url('//host/path?query=string')); print_r(parse_url('/'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKZQb
function name:  (null)
number of ops:  50
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'parse_url'
          9        SEND_VAL                                                 '%2Fpath%2F%3Fquery'
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'parse_url'
         15        SEND_VAL                                                 '%2Fpath'
         16        DO_ICALL                                         $4      
         17        SEND_VAR                                                 $4
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'print_r'
         20        INIT_FCALL                                               'parse_url'
         21        SEND_VAL                                                 '%3Fquery%3Dstring'
         22        DO_ICALL                                         $6      
         23        SEND_VAR                                                 $6
         24        DO_ICALL                                                 
    8    25        INIT_FCALL                                               'print_r'
         26        INIT_FCALL                                               'parse_url'
         27        SEND_VAL                                                 '%3Fquery'
         28        DO_ICALL                                         $8      
         29        SEND_VAR                                                 $8
         30        DO_ICALL                                                 
    9    31        INIT_FCALL                                               'print_r'
         32        INIT_FCALL                                               'parse_url'
         33        SEND_VAL                                                 'query'
         34        DO_ICALL                                         $10     
         35        SEND_VAR                                                 $10
         36        DO_ICALL                                                 
   10    37        INIT_FCALL                                               'print_r'
         38        INIT_FCALL                                               'parse_url'
         39        SEND_VAL                                                 '%2F%2Fhost%2Fpath%3Fquery%3Dstring'
         40        DO_ICALL                                         $12     
         41        SEND_VAR                                                 $12
         42        DO_ICALL                                                 
   11    43        INIT_FCALL                                               'print_r'
         44        INIT_FCALL                                               'parse_url'
         45        SEND_VAL                                                 '%2F'
         46        DO_ICALL                                         $14     
         47        SEND_VAR                                                 $14
         48        DO_ICALL                                                 
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.47 ms | 1400 KiB | 21 Q