3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once '/in/Bg0hc'; $uri1 = new uri('ftp://jdoe:pass1234@my-server.com/public_html'); // Lets upgrade to an admin account under sftp, but stay in the current directory. $uri1->chain()-> prepend('SCHEME_NAME', 's')-> replace('PORT', '22')-> replace('USER', 'admin')-> replace('PASS', 'secure-pass-123'); // NOTE: chain() methods always return the chain object, even if a method fails. echo $uri1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lv1L3
function name:  (null)
number of ops:  25
compiled vars:  !0 = $uri1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%2Fin%2FBg0hc', REQUIRE_ONCE
    5     1        NEW                                              $2      'uri'
          2        SEND_VAL_EX                                              'ftp%3A%2F%2Fjdoe%3Apass1234%40my-server.com%2Fpublic_html'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    8     5        INIT_METHOD_CALL                                         !0, 'chain'
          6        DO_FCALL                                      0  $5      
    9     7        INIT_METHOD_CALL                                         $5, 'prepend'
          8        SEND_VAL_EX                                              'SCHEME_NAME'
          9        SEND_VAL_EX                                              's'
         10        DO_FCALL                                      0  $6      
   10    11        INIT_METHOD_CALL                                         $6, 'replace'
         12        SEND_VAL_EX                                              'PORT'
         13        SEND_VAL_EX                                              '22'
         14        DO_FCALL                                      0  $7      
   11    15        INIT_METHOD_CALL                                         $7, 'replace'
         16        SEND_VAL_EX                                              'USER'
         17        SEND_VAL_EX                                              'admin'
         18        DO_FCALL                                      0  $8      
   12    19        INIT_METHOD_CALL                                         $8, 'replace'
         20        SEND_VAL_EX                                              'PASS'
         21        SEND_VAL_EX                                              'secure-pass-123'
         22        DO_FCALL                                      0          
   15    23        ECHO                                                     !0
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.87 ms | 1385 KiB | 13 Q