3v4l.org

run code in 300+ PHP versions simultaneously
<?php $toto = "http://mercure-ws1.vente.francetelecom.fr/ProjetMercure/servlet/accesauxapplis/.jsp?task=GererAccesAuxApplications&ctrl_choix_appli=NEPT"; @ $url = parse_url($toto); @ $port = $url['port']; if($port != "") @ $uri = $url['host'].":".$port; else @ $uri = $url['host']; echo var_dump($uri);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/reidg
function name:  (null)
number of ops:  29
compiled vars:  !0 = $toto, !1 = $url, !2 = $port, !3 = $uri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmercure-ws1.vente.francetelecom.fr%2FProjetMercure%2Fservlet%2Faccesauxapplis%2F.jsp%3Ftask%3DGererAccesAuxApplications%26ctrl_choix_appli%3DNEPT'
    4     1        BEGIN_SILENCE                                    ~5      
          2        INIT_FCALL                                               'parse_url'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
          6        END_SILENCE                                              ~5
    5     7        BEGIN_SILENCE                                    ~8      
          8        FETCH_DIM_R                                      ~9      !1, 'port'
          9        ASSIGN                                                   !2, ~9
         10        END_SILENCE                                              ~8
    6    11        IS_NOT_EQUAL                                             !2, ''
         12      > JMPZ                                                     ~11, ->20
    7    13    >   BEGIN_SILENCE                                    ~12     
         14        FETCH_DIM_R                                      ~13     !1, 'host'
         15        CONCAT                                           ~14     ~13, '%3A'
         16        CONCAT                                           ~15     ~14, !2
         17        ASSIGN                                                   !3, ~15
         18        END_SILENCE                                              ~12
         19      > JMP                                                      ->24
    9    20    >   BEGIN_SILENCE                                    ~17     
         21        FETCH_DIM_R                                      ~18     !1, 'host'
         22        ASSIGN                                                   !3, ~18
         23        END_SILENCE                                              ~17
   12    24    >   INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                         $20     
         27        ECHO                                                     $20
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.44 ms | 1396 KiB | 17 Q