3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = '/test/Test+%26+Live%40home'; $result = preg_replace('(^/test/(.+)$)', '/test/test.php?testget=$1', $url); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BnZ6a
function name:  (null)
number of ops:  11
compiled vars:  !0 = $url, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Ftest%2FTest%2B%2526%2BLive%2540home'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%28%5E%2Ftest%2F%28.%2B%29%24%29'
          3        SEND_VAL                                                 '%2Ftest%2Ftest.php%3Ftestget%3D%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.05 ms | 1394 KiB | 17 Q