3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<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\>(\w+?)\<strong\>/', $html, $result); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8DvKF
function name:  (null)
number of ops:  10
compiled vars:  !0 = $html, !1 = $result
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                                                 '%2F%5C%3C%5C%2Fh2%5C%3E%28%5Cw%2B%3F%29%5C%3Cstrong%5C%3E%2F'
          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:
178.66 ms | 1394 KiB | 17 Q