3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '200x2000^3434^54545|120x400^3333^4444'; echo preg_replace('/\^[^^]*\^/', 'XXXXX', $str, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WmhUX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '200x2000%5E3434%5E54545%7C120x400%5E3333%5E4444'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5C%5E%5B%5E%5E%5D%2A%5C%5E%2F'
          3        SEND_VAL                                                 'XXXXX'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.65 ms | 1397 KiB | 16 Q