3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello! 123 How Are You? 456"; preg_match_all('!\d\r!', $string, $matches); echo (int)implode('',$matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VcPVi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello%21+123+How+Are+You%3F+456'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%21%5Cd%5Cr%21'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 ''
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        CAST                                          4  ~6      $5
         12        ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.77 ms | 1394 KiB | 17 Q