3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.36 ms | 1394 KiB | 17 Q