3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<h2>Title of post</h2> 1 category <strong>task 1</strong> 1 category <strong>task 2</strong> 1 category <strong>task 3</strong>&nbsp; "; $zz = preg_match_all('#<strong>(.*?)</strong>#',$string,$matches); echo var_dump($zz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GY4gb
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $zz, !2 = $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%3Cstrong%3E%28.%2A%3F%29%3C%2Fstrong%3E%23'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.72 ms | 1394 KiB | 17 Q