3v4l.org

run code in 200+ PHP versions simultaneously
<?php $s['longDescription'] = 'replace these ***** not this* and *** this ** ****'; $blurb = preg_replace("/(?:(?<=\*)|(?=\*\*))\*/", "&#9733;", $s['longDescription']); echo $blurb;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8e7fL
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $blurb
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN_ADD                                    0          !0, 'longDescription'
         1        OP_DATA                                                  'replace+these+%2A%2A%2A%2A%2A+not+this%2A+and+%2A%2A%2A+this+%2A%2A+%2A%2A%2A%2A'
   3     2        INIT_FCALL                                               'preg_replace'
         3        SEND_VAL                                                 '%2F%28%3F%3A%28%3F%3C%3D%5C%2A%29%7C%28%3F%3D%5C%2A%5C%2A%29%29%5C%2A%2F'
         4        SEND_VAL                                                 '%26%239733%3B'
         5        FETCH_DIM_R                                      ~3      !0, 'longDescription'
         6        SEND_VAL                                                 ~3
         7        DO_ICALL                                         $4      
         8        QM_ASSIGN                                                !1
   4     9        ASSIGN_OBJ                                               !1
        10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0