3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = <<<EOF <span class="wine-list-item-head"> <span class="wine-list-item-title"><h2><a href="/wine/2001-gigault-cotes-de-blaye-750-ml">2001 Gigault Cotes de Blaye</a></h2></span> <span class="wine-list-item-varietal">Red Blend</span> <span class="wine-list-item-format">750 ml</span> </span> <span class="wine-list-item-ratings"> <span class="wine-list-item-score"><span class="pre-score">wa</span>88</span> <span class="wine-list-item-score"><span class="pre-score">ws</span>86</span> </span> EOF; $french_wine_formats_pattern = '!<span class="wine-list-item-format">(.*)</span>!mi'; preg_match_all($french_wine_formats_pattern, $output, $french_wines_formats_matches); foreach($french_wines_formats_matches[0] as $french_wines_formats_match){ $french_wines_format_array[] = $french_wines_formats_match; } print_r($french_wines_format_array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/ILibR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $output, !1 = $french_wine_formats_pattern, !2 = $french_wines_formats_matches, !3 = $french_wines_formats_match, !4 = $french_wines_format_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cspan+class%3D%22wine-list-item-head%22%3E%0A++++%3Cspan+class%3D%22wine-list-item-title%22%3E%3Ch2%3E%3Ca+href%3D%22%2Fwine%2F2001-gigault-cotes-de-blaye-750-ml%22%3E2001+Gigault+Cotes+de+Blaye%3C%2Fa%3E%3C%2Fh2%3E%3C%2Fspan%3E%0A++++%3Cspan+class%3D%22wine-list-item-varietal%22%3ERed+Blend%3C%2Fspan%3E%0A++++%3Cspan+class%3D%22wine-list-item-format%22%3E750+ml%3C%2Fspan%3E%0A++++%3C%2Fspan%3E%0A%0A++++%3Cspan+class%3D%22wine-list-item-ratings%22%3E%0A++++%3Cspan+class%3D%22wine-list-item-score%22%3E%3Cspan+class%3D%22pre-score%22%3Ewa%3C%2Fspan%3E88%3C%2Fspan%3E%0A++++%3Cspan+class%3D%22wine-list-item-score%22%3E%3Cspan+class%3D%22pre-score%22%3Ews%3C%2Fspan%3E86%3C%2Fspan%3E%0A%3C%2Fspan%3E'
   16     1        ASSIGN                                                   !1, '%21%3Cspan+class%3D%22wine-list-item-format%22%3E%28.%2A%29%3C%2Fspan%3E%21mi'
   17     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
   19     7        FETCH_DIM_R                                      ~8      !2, 0
          8      > FE_RESET_R                                       $9      ~8, ->13
          9    > > FE_FETCH_R                                               $9, !3, ->13
   20    10    >   ASSIGN_DIM                                               !4
         11        OP_DATA                                                  !3
   19    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $9
   23    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.28 ms | 1000 KiB | 15 Q