3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo parse_url("http://example.com:80#@google.com/")["host"]; echo "\n"; echo parse_url("http://example.com:80?@google.com/")["host"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tLqp5
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'http%3A%2F%2Fexample.com%3A80%23%40google.com%2F'
          2        DO_ICALL                                         $0      
          3        FETCH_DIM_R                                      ~1      $0, 'host'
          4        ECHO                                                     ~1
    4     5        ECHO                                                     '%0A'
    5     6        INIT_FCALL                                               'parse_url'
          7        SEND_VAL                                                 'http%3A%2F%2Fexample.com%3A80%3F%40google.com%2F'
          8        DO_ICALL                                         $2      
          9        FETCH_DIM_R                                      ~3      $2, 'host'
         10        ECHO                                                     ~3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.16 ms | 1394 KiB | 15 Q