3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "9hsfgh563452"; preg_match_all("/[0-9]/",$string,$matches); echo "Array size: " . count($matches[0])."</br>"; //Returns 1 echo "Array size: " . sizeof($matches[0])."</br>"; //Returns 1 print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N2Uof
function name:  (null)
number of ops:  20
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        FETCH_DIM_R                                      ~4      !1, 0
          7        COUNT                                            ~5      ~4
          8        CONCAT                                           ~6      'Array+size%3A+', ~5
          9        CONCAT                                           ~7      ~6, '%3C%2Fbr%3E'
         10        ECHO                                                     ~7
    6    11        FETCH_DIM_R                                      ~8      !1, 0
         12        COUNT                                            ~9      ~8
         13        CONCAT                                           ~10     'Array+size%3A+', ~9
         14        CONCAT                                           ~11     ~10, '%3C%2Fbr%3E'
         15        ECHO                                                     ~11
    7    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.26 ms | 1386 KiB | 17 Q