3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Diese Seite wurde bisher 6.971 mal abgerufen."; //$str = "Diese Seite wurde bisher 19 mal abgerufen."; $matches = array(); preg_match('/\d+(\.\d+)?/', $str, $matches); $val = $matches[0]; $val = str_replace('.', '', $val); var_dump(intval($val));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RBZEW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str, !1 = $matches, !2 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Diese+Seite+wurde+bisher+6.971+mal+abgerufen.'
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5Cd%2B%28%5C.%5Cd%2B%29%3F%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    8     7        FETCH_DIM_R                                      ~6      !1, 0
          8        ASSIGN                                                   !2, ~6
    9     9        INIT_FCALL                                               'str_replace'
         10        SEND_VAL                                                 '.'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
   10    15        INIT_FCALL                                               'var_dump'
         16        CAST                                          4  ~10     !2
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.16 ms | 1395 KiB | 19 Q