3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str1 = "$12,334.00A"; echo preg_replace("/[^0-9,.]/", "", $str1); ?> - See more at: http://www.w3resource.com/php-exercises/php-regular-expression-exercises.php#sthash.nmTOIj71.dpuf
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/SRVAc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str1
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, '%2412%2C334.00A'
   3     1        INIT_FCALL                                               'preg_replace'
         2        SEND_VAL                                                 '%2F%5B%5E0-9%2C.%5D%2F'
         3        SEND_VAL                                                 ''
         4        SEND_VAR                                                 !0
         5        DO_ICALL                                         $2      
         6        ECHO                                                     $2
   5     7        ECHO                                                     '++%0A-+See+more+at%3A+http%3A%2F%2Fwww.w3resource.com%2Fphp-exercises%2Fphp-regular-expression-exercises.php%23sthash.nmTOIj71.dpuf'
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0