3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<li>Want this</li>DON'T WANT THIS<li>Want this</li>DON'T WANT THIS<li>Want this</li>"; preg_match_all('/<li>(.*?)<\/li>/', $str, $out); echo '<pre>'; print_r($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bgdkn
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cli%3EWant+this%3C%2Fli%3EDON%27T+WANT+THIS%3Cli%3EWant+this%3C%2Fli%3EDON%27T+WANT+THIS%3Cli%3EWant+this%3C%2Fli%3E'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%3Cli%3E%28.%2A%3F%29%3C%5C%2Fli%3E%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        ECHO                                                     '%3Cpre%3E'
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.48 ms | 1394 KiB | 17 Q