3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'we 1,2000,2000,000,000,000,000,000,000,100.99 wf '; $string = 'we +1200300400500600700800900,99 wf '; //preg_match_all('/([+-])?[\d.,]+([.,]\d{1,2})?/', $string, $matches); //preg_match_all("/[+-]?\d{1,3}[.,]+(\d{3}[.,'])(?R)?/", $string, $matches); //preg_match_all("/[+-]?\d{1,3}[., ]?(?:\d{3}[., ]?)(?R)?/", $string, $matches); preg_match_all("/[+-]?\d{1,3}[., ]?(?:\d{3}[., ]?)(?R)?\d{3}/", $string, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1qRap
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'we+1%2C2000%2C2000%2C000%2C000%2C000%2C000%2C000%2C000%2C100.99+wf+'
    4     1        ASSIGN                                                   !0, 'we+%2B1200300400500600700800900%2C99+wf+'
    8     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5B%2B-%5D%3F%5Cd%7B1%2C3%7D%5B.%2C+%5D%3F%28%3F%3A%5Cd%7B3%7D%5B.%2C+%5D%3F%29%28%3FR%29%3F%5Cd%7B3%7D%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.64 ms | 1394 KiB | 17 Q