3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Call a group of 8 Shadow Beasts to plummet from the sky at a targeted location dealing 3200% total weapon damage over 5 seconds and stunning enemies hit for 2 seconds.'; echo preg_replace("/[0-9]+%?/", '<span class="d3-text-green">$1</span>', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gOpgC
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Call+a+group+of+8+Shadow+Beasts+to+plummet+from+the+sky+at+a+targeted+location+dealing+3200%25+total+weapon+damage+over+5+seconds+and+stunning+enemies+hit+for+2+seconds.'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B0-9%5D%2B%25%3F%2F'
          3        SEND_VAL                                                 '%3Cspan+class%3D%22d3-text-green%22%3E%241%3C%2Fspan%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.85 ms | 1385 KiB | 15 Q