3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once '/in/Ncror'; $uri1 = new uri('example.com/original/path'); echo $uri1->replace('PATH', '/alternative/path');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KpuCZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $uri1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%2Fin%2FNcror', INCLUDE_ONCE
    6     1        NEW                                              $2      'uri'
          2        SEND_VAL_EX                                              'example.com%2Foriginal%2Fpath'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    9     5        INIT_METHOD_CALL                                         !0, 'replace'
          6        SEND_VAL_EX                                              'PATH'
          7        SEND_VAL_EX                                              '%2Falternative%2Fpath'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.9 ms | 1393 KiB | 13 Q