3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<DATA >0 Dollar</span >0.01 Dollar</span >0.00 Dollar</span >50.00 Dollar</span DATA; $regex = '/>\K(?=[0.]*[1-9])\d+(?:\.\d+)?+\h+Dollar(?=<)/'; preg_match_all($regex, $data, $matches); var_export($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Onftr
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $regex, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3E0+Dollar%3C%2Fspan%0A%3E0.01+Dollar%3C%2Fspan%0A%3E0.00+Dollar%3C%2Fspan+%0A%3E50.00+Dollar%3C%2Fspan'
    9     1        ASSIGN                                                   !1, '%2F%3E%5CK%28%3F%3D%5B0.%5D%2A%5B1-9%5D%29%5Cd%2B%28%3F%3A%5C.%5Cd%2B%29%3F%2B%5Ch%2BDollar%28%3F%3D%3C%29%2F'
   10     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   11     7        INIT_FCALL                                               'var_export'
          8        FETCH_DIM_R                                      ~6      !2, 0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.3 ms | 1001 KiB | 15 Q