3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once '/in/Bg0hc'; $uri = new uri('ftp://jdoe:pass1234@my-server.com/public_html'); foreach (range(1,1000) as $test_num) { $uri->chain()-> prepend('SCHEME_NAME', 's')-> replace('PORT', '22')-> replace('USER', 'admin')-> replace('PASS', 'secure-pass-123'); } echo $uri;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 30
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 30
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/QRYAE
function name:  (null)
number of ops:  33
compiled vars:  !0 = $uri, !1 = $test_num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%2Fin%2FBg0hc', REQUIRE_ONCE
    5     1        NEW                                              $3      'uri'
          2        SEND_VAL_EX                                              'ftp%3A%2F%2Fjdoe%3Apass1234%40my-server.com%2Fpublic_html'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $3
    7     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 1000
          8        DO_ICALL                                         $6      
          9      > FE_RESET_R                                       $7      $6, ->30
         10    > > FE_FETCH_R                                               $7, !1, ->30
    8    11    >   INIT_METHOD_CALL                                         !0, 'chain'
         12        DO_FCALL                                      0  $8      
    9    13        INIT_METHOD_CALL                                         $8, 'prepend'
         14        SEND_VAL_EX                                              'SCHEME_NAME'
         15        SEND_VAL_EX                                              's'
         16        DO_FCALL                                      0  $9      
   10    17        INIT_METHOD_CALL                                         $9, 'replace'
         18        SEND_VAL_EX                                              'PORT'
         19        SEND_VAL_EX                                              '22'
         20        DO_FCALL                                      0  $10     
   11    21        INIT_METHOD_CALL                                         $10, 'replace'
         22        SEND_VAL_EX                                              'USER'
         23        SEND_VAL_EX                                              'admin'
         24        DO_FCALL                                      0  $11     
   12    25        INIT_METHOD_CALL                                         $11, 'replace'
         26        SEND_VAL_EX                                              'PASS'
         27        SEND_VAL_EX                                              'secure-pass-123'
         28        DO_FCALL                                      0          
    7    29      > JMP                                                      ->10
         30    >   FE_FREE                                                  $7
   15    31        ECHO                                                     !0
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1396 KiB | 15 Q