3v4l.org

run code in 500+ PHP versions simultaneously
<?php $target = "abcwa"; echo preg_replace('/./', 'w:$0', $target); echo "\n"; echo preg_replace('/(?=.)/', 'w:', $target);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lPQVR
function name:  (null)
number of ops:  9
compiled vars:  !0 = $target
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'abcwa'
    5     1        FRAMELESS_ICALL_3                preg_replace        ~2      '%2F.%2F', 'w%3A%240'
          2        OP_DATA                                                      !0
          3        ECHO                                                         ~2
    7     4        ECHO                                                         '%0A'
    9     5        FRAMELESS_ICALL_3                preg_replace        ~3      '%2F%28%3F%3D.%29%2F', 'w%3A'
          6        OP_DATA                                                      !0
          7        ECHO                                                         ~3
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.64 ms | 1711 KiB | 14 Q