3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); $str = "€ 1.250.000 k.k."; $str = preg_match_all('/\d/', $str, $matches); $str = implode("", $matches[0]); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lnpt9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $matches, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '%E2%82%AC+1.250.000+k.k.'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5Cd%2F'
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 ''
         10        FETCH_DIM_R                                      ~6      !0, 0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    7    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.32 ms | 1010 KiB | 15 Q