3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<tag> etc</tag> <p numbers="11.2,1.1 2,3,3.1 33"></p> <div> etc</div>'; preg_match('/<p.*numbers="(.*)"/', $string, $match); preg_match_all('/(\d+(\.?|\s?)(\d+)?)/', $match[0], $matches); echo '<pre>'; print_r($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iVp1v
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $match, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ctag%3E+etc%3C%2Ftag%3E%0A%3Cp+numbers%3D%2211.2%2C1.1+2%2C3%2C3.1+33%22%3E%3C%2Fp%3E%0A%3Cdiv%3E+etc%3C%2Fdiv%3E'
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%3Cp.%2Anumbers%3D%22%28.%2A%29%22%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'preg_match_all'
          7        SEND_VAL                                                 '%2F%28%5Cd%2B%28%5C.%3F%7C%5Cs%3F%29%28%5Cd%2B%29%3F%29%2F'
          8        FETCH_DIM_R                                      ~5      !1, 0
          9        SEND_VAL                                                 ~5
         10        SEND_REF                                                 !2
         11        DO_ICALL                                                 
   11    12        ECHO                                                     '%3Cpre%3E'
   12    13        INIT_FCALL                                               'print_r'
         14        FETCH_DIM_R                                      ~7      !2, 0
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.04 ms | 999 KiB | 16 Q