3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystack3 = '<span class=\'descr\'>test, test2, test3</span> <span class=\'descr\'>test</span> <span class=\'descr\'>test4 test5</span>'; preg_match_all('#^<span class=\'descr\'>(.*?)</span>$#m', $haystack3, $matches3); var_dump(implode(',', str_replace(array(', ', ' '), ',', $matches3[1])));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u74H2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $haystack3, !1 = $matches3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%3Cspan+class%3D%27descr%27%3Etest%2C+test2%2C+test3%3C%2Fspan%3E%0A%3Cspan+class%3D%27descr%27%3Etest%3C%2Fspan%3E%0A%3Cspan+class%3D%27descr%27%3Etest4+test5%3C%2Fspan%3E'
    6     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%23%5E%3Cspan+class%3D%27descr%27%3E%28.%2A%3F%29%3C%2Fspan%3E%24%23m'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    7     6        INIT_FCALL                                                   'var_dump'
          7        FETCH_DIM_R                                          ~4      !1, 1
          8        FRAMELESS_ICALL_3                str_replace         ~5      <array>, '%2C'
          9        OP_DATA                                                      ~4
         10        FRAMELESS_ICALL_2                implode             ~6      '%2C', ~5
         11        SEND_VAL                                                     ~6
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.01 ms | 3324 KiB | 15 Q