3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt='"<optgroup label=" Gare du Nord - Gare de l\'Est - 10e"></optgroup><option data-max-adults="3" value="TIMHOTELGEst" selected>&#9473; Timhotel Paris Gare de l\'Est / 3*"'; $re1='.*?'; # Non-greedy match on filler if ($c=preg_match_all ("/".$re1."/is", $txt, $matches)) { $word1=$matches[1][0]; print "($word1) \n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/aLDhJ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $txt, !1 = $re1, !2 = $c, !3 = $matches, !4 = $word1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%22%3Coptgroup+label%3D%22+Gare+du+Nord+-+Gare+de+l%27Est+-+10e%22%3E%3C%2Foptgroup%3E%3Coption+data-max-adults%3D%223%22+value%3D%22TIMHOTELGEst%22+selected%3E%26%239473%3B+Timhotel+Paris+Gare+de+l%27Est+%2F+3%2A%22'
    5     1        ASSIGN                                                   !1, '.%2A%3F'
    7     2        INIT_FCALL                                               'preg_match_all'
          3        CONCAT                                           ~7      '%2F', !1
          4        CONCAT                                           ~8      ~7, '%2Fis'
          5        SEND_VAL                                                 ~8
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !3
          8        DO_ICALL                                         $9      
          9        ASSIGN                                           ~10     !2, $9
         10      > JMPZ                                                     ~10, ->18
    9    11    >   FETCH_DIM_R                                      ~11     !3, 1
         12        FETCH_DIM_R                                      ~12     ~11, 0
         13        ASSIGN                                                   !4, ~12
   10    14        ROPE_INIT                                     3  ~15     '%28'
         15        ROPE_ADD                                      1  ~15     ~15, !4
         16        ROPE_END                                      2  ~14     ~15, '%29+%0A'
         17        ECHO                                                     ~14
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.43 ms | 1395 KiB | 15 Q