3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<li data-type="mentionable" data-id="2">bla bla... <li data-type="mentionable" data-id="812">some test <li>bla bla </li>more text <li data-type="mentionable" data-id="282">'; preg_match_all("/data-id=\"(\d+)\"/", $str, $matches); print_r($matches[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sslcb
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cli+data-type%3D%22mentionable%22+data-id%3D%222%22%3Ebla+bla...+%3Cli%0A+data-type%3D%22mentionable%22+data-id%3D%22812%22%3Esome+test+%3Cli%3Ebla+bla+%3C%2Fli%3Emore+text+%3Cli%0A+data-type%3D%22mentionable%22+data-id%3D%22282%22%3E'
    6     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2Fdata-id%3D%22%28%5Cd%2B%29%22%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'print_r'
          7        FETCH_DIM_R                                      ~4      !1, 1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.99 ms | 1398 KiB | 17 Q