3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<span class="price" id="old-price-3">€&nbsp;200,00 </span> <span class="price" id="product-price-3">€&nbsp;80,00</span>'; var_dump(preg_replace("/€&nbsp;([0-9]+),([0-9]+)/i", "$1", $s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6p85S
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cspan+class%3D%22price%22+id%3D%22old-price-3%22%3E%E2%82%AC%26nbsp%3B200%2C00+%3C%2Fspan%3E%0A%3Cspan+class%3D%22price%22+id%3D%22product-price-3%22%3E%E2%82%AC%26nbsp%3B80%2C00%3C%2Fspan%3E'
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%E2%82%AC%26nbsp%3B%28%5B0-9%5D%2B%29%2C%28%5B0-9%5D%2B%29%2Fi'
          4        SEND_VAL                                                 '%241'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.81 ms | 1010 KiB | 15 Q