3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "9hsfgh563452"; preg_match_all("/[0-9]/",$string,$matches); echo "Array sum: " . array_sum($matches[0])."\n"; print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/reZiG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '9hsfgh563452'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5B0-9%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'array_sum'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      'Array+sum%3A+', $5
         11        CONCAT                                           ~7      ~6, '%0A'
         12        ECHO                                                     ~7
    6    13        INIT_FCALL                                               'print_r'
         14        FETCH_DIM_R                                      ~8      !1, 0
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1394 KiB | 19 Q