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.$re2."/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 = 13, Position 2 = 20
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/NtO6T
function name:  (null)
number of ops:  21
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, !2
          6        CONCAT                                           ~11     ~10, '%2Fis'
          7        SEND_VAL                                                 ~11
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !4
         10        DO_ICALL                                         $12     
         11        ASSIGN                                           ~13     !3, $12
         12      > JMPZ                                                     ~13, ->20
   10    13    >   FETCH_DIM_R                                      ~14     !4, 1
         14        FETCH_DIM_R                                      ~15     ~14, 0
         15        ASSIGN                                                   !5, ~15
   11    16        ROPE_INIT                                     3  ~18     '%28'
         17        ROPE_ADD                                      1  ~18     ~18, !5
         18        ROPE_END                                      2  ~17     ~18, '%29+%0A'
         19        ECHO                                                     ~17
   12    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.2 ms | 1395 KiB | 15 Q