3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "/0123456789/abcdefg"; $regex= "~/\d+/~"; $replace = ""; echo preg_replace($regex, $replace,$url);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GUtm4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url, !1 = $regex, !2 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F0123456789%2Fabcdefg'
    4     1        ASSIGN                                                   !1, '%7E%2F%5Cd%2B%2F%7E'
    5     2        ASSIGN                                                   !2, ''
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1008 KiB | 14 Q