3v4l.org

run code in 300+ 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:  20
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        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '%2C'
          9        INIT_FCALL                                               'str_replace'
         10        SEND_VAL                                                 <array>
         11        SEND_VAL                                                 '%2C'
         12        FETCH_DIM_R                                      ~4      !1, 1
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.39 ms | 1435 KiB | 17 Q