3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = '#socialmedia within:15mi'; $result = preg_replace("/ within:[0-9]+[mi|km]/", "$1", $q, -1, $count); print_r($result); echo 44; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/trruc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $q, !1 = $result, !2 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%23socialmedia+within%3A15mi'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F+within%3A%5B0-9%5D%2B%5Bmi%7Ckm%5D%2F'
          3        SEND_VAL                                                 '%241'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 -1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    6    12        ECHO                                                     44
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.66 ms | 1394 KiB | 17 Q