3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<h2>Title of post</h2> 1 category <strong>task 1</strong> 1 category <strong>task 2</strong> 1 category <strong>task 3</strong>&nbsp;'; preg_match_all('#<\/h2>(.*?)<strong>#',$content,$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3lUoe
function name:  (null)
number of ops:  10
compiled vars:  !0 = $content, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ch2%3ETitle+of+post%3C%2Fh2%3E+1+category+%3Cstrong%3Etask+1%3C%2Fstrong%3E+1+category+%3Cstrong%3Etask+2%3C%2Fstrong%3E+1+category+%3Cstrong%3Etask+3%3C%2Fstrong%3E%26nbsp%3B'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%23%3C%5C%2Fh2%3E%28.%2A%3F%29%3Cstrong%3E%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.23 ms | 1398 KiB | 17 Q