3v4l.org

run code in 300+ PHP versions simultaneously
<?php # URL that generated this code: # http://txt2re.com/index-php.php3?s=14:Sep:2012%20%22This%20is%20an%20Example!%22&18 $txt='14:Sep:2012 "This is an Example!"'; $re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z0-9_]*)'; # Uninteresting: var $re3='.*?'; # Non-greedy match on filler $re4='(?:[a-z][a-z0-9_]*)'; # Uninteresting: var $re5='.*?'; # Non-greedy match on filler $re6='((?:[a-z][a-z0-9_]*))'; # Variable Name 1 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6."/is", $txt, $matches)) { $var1=$matches[1][0]; print "($var1) \n"; } #----- # Paste the code into a new php file. Then in Unix: # $ php x.php #----- ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/W5voU
function name:  (null)
number of ops:  29
compiled vars:  !0 = $txt, !1 = $re1, !2 = $re2, !3 = $re3, !4 = $re4, !5 = $re5, !6 = $re6, !7 = $c, !8 = $matches, !9 = $var1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '14%3ASep%3A2012+%22This+is+an+Example%21%22'
    7     1        ASSIGN                                                   !1, '.%2A%3F'
    8     2        ASSIGN                                                   !2, '%28%3F%3A%5Ba-z%5D%5Ba-z0-9_%5D%2A%29'
    9     3        ASSIGN                                                   !3, '.%2A%3F'
   10     4        ASSIGN                                                   !4, '%28%3F%3A%5Ba-z%5D%5Ba-z0-9_%5D%2A%29'
   11     5        ASSIGN                                                   !5, '.%2A%3F'
   12     6        ASSIGN                                                   !6, '%28%28%3F%3A%5Ba-z%5D%5Ba-z0-9_%5D%2A%29%29'
   14     7        INIT_FCALL                                               'preg_match_all'
          8        CONCAT                                           ~17     '%2F', !1
          9        CONCAT                                           ~18     ~17, !2
         10        CONCAT                                           ~19     ~18, !3
         11        CONCAT                                           ~20     ~19, !4
         12        CONCAT                                           ~21     ~20, !5
         13        CONCAT                                           ~22     ~21, !6
         14        CONCAT                                           ~23     ~22, '%2Fis'
         15        SEND_VAL                                                 ~23
         16        SEND_VAR                                                 !0
         17        SEND_REF                                                 !8
         18        DO_ICALL                                         $24     
         19        ASSIGN                                           ~25     !7, $24
         20      > JMPZ                                                     ~25, ->28
   16    21    >   FETCH_DIM_R                                      ~26     !8, 1
         22        FETCH_DIM_R                                      ~27     ~26, 0
         23        ASSIGN                                                   !9, ~27
   17    24        ROPE_INIT                                     3  ~30     '%28'
         25        ROPE_ADD                                      1  ~30     ~30, !9
         26        ROPE_END                                      2  ~29     ~30, '%29+%0A'
         27        ECHO                                                     ~29
   24    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.91 ms | 1396 KiB | 15 Q