3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = parse_url('ssh://git@bitbucket.org/foo/bar.git'); unset($parts['scheme']); $parts['port'] = 'foo'; $parts['path'] = '/bar.git'; echo http_build_url($parts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8CDl6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'ssh%3A%2F%2Fgit%40bitbucket.org%2Ffoo%2Fbar.git'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        UNSET_DIM                                                !0, 'scheme'
    5     5        ASSIGN_DIM                                               !0, 'port'
          6        OP_DATA                                                  'foo'
    6     7        ASSIGN_DIM                                               !0, 'path'
          8        OP_DATA                                                  '%2Fbar.git'
    8     9        INIT_FCALL_BY_NAME                                       'http_build_url'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $5      
         12        ECHO                                                     $5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.16 ms | 1394 KiB | 15 Q