3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s['longDescription'] = 'replace these ***** not this* and *** this ** ****'; $blurb = preg_replace_callback("/(?:(?<=\*)|(?=\*\*))\*/", "&#9733;", $s['longDescription']); echo $blurb;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BlgsL
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_DIM                                               !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_callback'
          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        ASSIGN                                                   !1, $4
    4     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1394 KiB | 15 Q