3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url='https://m.facebook.com/home.php?refsrc=https%3A%2F%2Fm.facebook.com%2F&refid=8&_rdr'; var_dump( parse_url($url,PHP_URL_SCHEME), parse_url($url,PHP_URL_HOST), parse_url($url,PHP_URL_HOST | PHP_URL_SCHEME), parse_url($url,-1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L0b92
function name:  (null)
number of ops:  24
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fm.facebook.com%2Fhome.php%3Frefsrc%3Dhttps%253A%252F%252Fm.facebook.com%252F%26refid%3D8%26_rdr'
    3     1        INIT_FCALL                                               'var_dump'
    4     2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
    5     7        INIT_FCALL                                               'parse_url'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
    6    12        INIT_FCALL                                               'parse_url'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
    7    17        INIT_FCALL                                               'parse_url'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 -1
         20        DO_ICALL                                         $5      
         21        SEND_VAR                                                 $5
         22        DO_ICALL                                                 
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.5 ms | 1395 KiB | 17 Q