3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cleanNum($rawNumb){ // cleaning tool return preg_replace('/[^0-9.]+/',"",$rawNumb); }; echo cleanNum('$100.09'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBjkf
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'cleannum'
          1        SEND_VAL                                                 '%24100.09'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    8     4      > RETURN                                                   1

Function cleannum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pBjkf
function name:  cleanNum
number of ops:  8
compiled vars:  !0 = $rawNumb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E0-9.%5D%2B%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    5     7*     > RETURN                                                   null

End of function cleannum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1397 KiB | 16 Q