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"; } $regs = explode(">━ ", $opt); // preg_match('`<option value="(.+?)" selected>`', $opt, $regs); var_dump($regs);
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/DXhOG
function name:  (null)
number of ops:  27
compiled vars:  !0 = $txt, !1 = $re1, !2 = $c, !3 = $matches, !4 = $word1, !5 = $regs, !6 = $opt
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                                           ~9      '%2F', !1
          4        CONCAT                                           ~10     ~9, '%2Fis'
          5        SEND_VAL                                                 ~10
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !3
          8        DO_ICALL                                         $11     
          9        ASSIGN                                           ~12     !2, $11
         10      > JMPZ                                                     ~12, ->18
    9    11    >   FETCH_DIM_R                                      ~13     !3, 1
         12        FETCH_DIM_R                                      ~14     ~13, 0
         13        ASSIGN                                                   !4, ~14
   10    14        ROPE_INIT                                     3  ~17     '%28'
         15        ROPE_ADD                                      1  ~17     ~17, !4
         16        ROPE_END                                      2  ~16     ~17, '%29+%0A'
         17        ECHO                                                     ~16
   13    18    >   INIT_FCALL                                               'explode'
         19        SEND_VAL                                                 '%3E%E2%94%81+'
         20        SEND_VAR                                                 !6
         21        DO_ICALL                                         $19     
         22        ASSIGN                                                   !5, $19
   17    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !5
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1387 KiB | 19 Q