3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace(array('/#{(\S*)(\s?)}/', '/#{(\S*)(\s*)(.*)}/'), array('<?=$1?>', '<?=$1($3)?>'), "href:#{$name}?id=#{$id} Link");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OB0a5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $name, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 <array>
          3        ROPE_INIT                                     5  ~3      'href%3A%23'
          4        ROPE_ADD                                      1  ~3      ~3, !0
          5        ROPE_ADD                                      2  ~3      ~3, '%3Fid%3D%23'
          6        ROPE_ADD                                      3  ~3      ~3, !1
          7        ROPE_END                                      4  ~2      ~3, '+Link'
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.02 ms | 1394 KiB | 15 Q