3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { return 'http://localhost:80'; } $hostname = a(); if ( !$port = parse_url( $hostname, PHP_URL_PORT ) ) { var_dump( "oops" ); } echo $port;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/Aprv2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $hostname, !1 = $port
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    9     3        INIT_FCALL                                               'parse_url'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $4      
          7        ASSIGN                                           ~5      !1, $4
          8        BOOL_NOT                                         ~6      ~5
          9      > JMPZ                                                     ~6, ->13
   10    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'oops'
         12        DO_ICALL                                                 
   13    13    >   ECHO                                                     !1
         14      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Aprv2
function name:  a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'http%3A%2F%2Flocalhost%3A80'
    6     1*     > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1397 KiB | 18 Q