3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/{{ city }}/{{ county }}"; $pattern = preg_replace('#{{ (.*) }}#', '(.*)', $pattern); echo $pattern; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Od1Y8
function name:  (null)
number of ops:  9
compiled vars:  !0 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%2F%7B%7B+city+%7D%7D%2F%7B%7B+county+%7D%7D'
    6     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%7B%7B+%28.%2A%29+%7D%7D%23'
          3        SEND_VAL                                                 '%28.%2A%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        ECHO                                                     !0
    9     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.34 ms | 1385 KiB | 15 Q