3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(alt)=("[^"]*")/'; $str = '<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 item">\n <div class="portfolio-item">\n <a href="http://www.example.com/en/test/1234/11224/Music 09" title="Music Club ( sun ) Music 09" class="portfolio-item-link" >\n <span class="portfolio-item-hover"></span>\n <span class="fullscreen"><i class="icon-play"></i></span>\n <img src="http://www.example.com/teststorage/episodes/11224/201.jpg" alt="Music Club ( sun ) Music 09" />\n </a>\n <div class="portfolio-item-title">\n <a href="http://www.example.com/en/test/1234/11224/Music 09" title="Music Club ( sun ) Music 09" class="portfolio-item-link"><h4>Music 09</h4></a>\n </div>\n <div class="clearfix"></div>\n </div>\n </div>'; preg_match_all($re, $str, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fad06
function name:  (null)
number of ops:  11
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28alt%29%3D%28%22%5B%5E%22%5D%2A%22%29%2F'
    3     1        ASSIGN                                                   !1, '%3Cdiv+class%3D%22col-lg-3+col-md-3+col-sm-6+col-xs-12+item%22%3E%5Cn++++++++%3Cdiv+class%3D%22portfolio-item%22%3E%5Cn++++++++++++%3Ca+href%3D%22http%3A%2F%2Fwww.example.com%2Fen%2Ftest%2F1234%2F11224%2FMusic+09%22+title%3D%22Music+Club+%28+sun+%29+Music+09%22+class%3D%22portfolio-item-link%22+%3E%5Cn++++++++++++++++%3Cspan+class%3D%22portfolio-item-hover%22%3E%3C%2Fspan%3E%5Cn++++++++++++++++%3Cspan+class%3D%22fullscreen%22%3E%3Ci+class%3D%22icon-play%22%3E%3C%2Fi%3E%3C%2Fspan%3E%5Cn++++++++++++++++%3Cimg+src%3D%22http%3A%2F%2Fwww.example.com%2Fteststorage%2Fepisodes%2F11224%2F201.jpg%22+alt%3D%22Music+Club+%28+sun+%29+Music+09%22+%2F%3E%5Cn++++++++++++%3C%2Fa%3E%5Cn++++++++++++%3Cdiv+class%3D%22portfolio-item-title%22%3E%5Cn++++++++++++++++%3Ca+href%3D%22http%3A%2F%2Fwww.example.com%2Fen%2Ftest%2F1234%2F11224%2FMusic+09%22+title%3D%22Music+Club+%28+sun+%29+Music+09%22+class%3D%22portfolio-item-link%22%3E%3Ch4%3EMusic+09%3C%2Fh4%3E%3C%2Fa%3E%5Cn++++++++++++%3C%2Fdiv%3E%5Cn++++++++++++%3Cdiv+class%3D%22clearfix%22%3E%3C%2Fdiv%3E%5Cn++++++++%3C%2Fdiv%3E%5Cn++++%3C%2Fdiv%3E'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.14 ms | 1386 KiB | 17 Q