3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt='28:Apr:2015 "This is an Example!"'; $re1='.*?'; # Non-greedy match on filler $re2='(Example)'; # Word 1 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 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/9c2C0
function name:  (null)
number of ops:  20
compiled vars:  !0 = $txt, !1 = $re1, !2 = $re2, !3 = $c, !4 = $matches, !5 = $word1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '28%3AApr%3A2015+%22This+is+an+Example%21%22'
    5     1        ASSIGN                                                   !1, '.%2A%3F'
    6     2        ASSIGN                                                   !2, '%28Example%29'
    8     3        INIT_FCALL                                               'preg_match_all'
          4        CONCAT                                           ~9      '%2F', !1
          5        CONCAT                                           ~10     ~9, '%2Fis'
          6        SEND_VAL                                                 ~10
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !4
          9        DO_ICALL                                         $11     
         10        ASSIGN                                           ~12     !3, $11
         11      > JMPZ                                                     ~12, ->19
   10    12    >   FETCH_DIM_R                                      ~13     !4, 1
         13        FETCH_DIM_R                                      ~14     ~13, 0
         14        ASSIGN                                                   !5, ~14
   11    15        ROPE_INIT                                     3  ~17     '%28'
         16        ROPE_ADD                                      1  ~17     ~17, !5
         17        ROPE_END                                      2  ~16     ~17, '%29+%0A'
         18        ECHO                                                     ~16
   12    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.12 ms | 1395 KiB | 15 Q