3v4l.org

run code in 500+ PHP versions simultaneously
<?php $content = <<<TEXT Order is purchased on 23-05-2023.Order is in progress and you can see order status on website by enter id JKSZ089P6X07&nbsp;&nbsp;012 TEXT; $orderId = "JKSZ089P6X07A07012"; $regex = '#\b' . substr_replace($orderId, '(?:&nbsp;)+', 12, 3) . '\b#'; var_export(preg_replace($regex, $orderId, $content));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ElC4g
function name:  (null)
number of ops:  17
compiled vars:  !0 = $content, !1 = $orderId, !2 = $regex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Order+is+purchased+on+23-05-2023.Order+is+in+progress+and+you+can+see+order+status+on+website+by+enter+id+JKSZ089P6X07%26nbsp%3B%26nbsp%3B012'
    6     1        ASSIGN                                                       !1, 'JKSZ089P6X07A07012'
    8     2        INIT_FCALL                                                   'substr_replace'
          3        SEND_VAR                                                     !1
          4        SEND_VAL                                                     '%28%3F%3A%26nbsp%3B%29%2B'
          5        SEND_VAL                                                     12
          6        SEND_VAL                                                     3
          7        DO_ICALL                                             $5      
          8        CONCAT                                               ~6      '%23%5Cb', $5
          9        CONCAT                                               ~7      ~6, '%5Cb%23'
         10        ASSIGN                                                       !2, ~7
   10    11        INIT_FCALL                                                   'var_export'
         12        FRAMELESS_ICALL_3                preg_replace        ~9      !2, !1
         13        OP_DATA                                                      !0
         14        SEND_VAL                                                     ~9
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.11 ms | 1728 KiB | 15 Q