3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/TOTALE EURO CONTANTI\s*\K\d+[.,]\d+/'; $str = 'Del burger Sr Via Carlo del Prete 106/d 50127 FIRENZE C.F. E P.IVA 08380120482 BRUNCH MAMMAMIA ONION RINGS SPICCHI PATATE ACQUA 0.5L TAVOLO 88 EURO 6,50 6,50 4,00 3,00 1,00 TOTALE EURO CONTANTI 21,00 21,00 NR.0057 23/05/18 20:21 MF U1 72005985'; preg_match($re, $str, $matches); echo $matches[0]; // 1,00
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KZBIK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2FTOTALE+EURO+CONTANTI%5Cs%2A%5CK%5Cd%2B%5B.%2C%5D%5Cd%2B%2F'
    4     1        ASSIGN                                                   !1, 'Del+burger+Sr+Via+Carlo+del+Prete+106%2Fd+50127+FIRENZE+C.F.+E+P.IVA+08380120482+BRUNCH+MAMMAMIA+ONION+RINGS+SPICCHI+PATATE+ACQUA+0.5L+TAVOLO+88+EURO+6%2C50+6%2C50+4%2C00+3%2C00+1%2C00+TOTALE+EURO+CONTANTI+21%2C00+21%2C00+NR.0057+23%2F05%2F18+20%3A21+MF+U1+72005985'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    7     7        FETCH_DIM_R                                      ~6      !2, 0
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.69 ms | 998 KiB | 14 Q