3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = [ '#ModDate\(D:.+?\)#iS', '#CreationDate\(D:.+?\)>>#iS', '#<(?:\w+>\s*)?<\w+>]/Info 12 0 R/Size 13>>#iS' ]; $test = [ '<<6406385b76f6aff658f99ae741311613>]/Info 12 0 R/Size 13>>', '<<386b495366514f47b43ebdafdcdfb880>]/Info 12 0 R/Size 13>>' ]; foreach ($test as $t) { foreach ($pattern as $p) { var_dump(preg_match($p, $t)); } };
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/501nW
function name:  (null)
number of ops:  18
compiled vars:  !0 = $pattern, !1 = $test, !2 = $t, !3 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   14     2      > FE_RESET_R                                       $6      !1, ->16
          3    > > FE_FETCH_R                                               $6, !2, ->16
   15     4    > > FE_RESET_R                                       $7      !0, ->14
          5    > > FE_FETCH_R                                               $7, !3, ->14
   16     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'preg_match'
          8        SEND_VAR                                                 !3
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
   15    13      > JMP                                                      ->5
         14    >   FE_FREE                                                  $7
   14    15      > JMP                                                      ->3
         16    >   FE_FREE                                                  $6
   18    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.31 ms | 1395 KiB | 17 Q