3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '$123,34.00A'; $var2 = '12334.00'; $reg = "/[^0-9]/"; print preg_replace($reg,"",$var); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bSrjg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var, !1 = $var2, !2 = $reg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24123%2C34.00A'
    4     1        ASSIGN                                                   !1, '12334.00'
    5     2        ASSIGN                                                   !2, '%2F%5B%5E0-9%5D%2F'
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !2
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
    7     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.63 ms | 1393 KiB | 15 Q