3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach (['?', '*', '`', '|'] as $value) { $result = preg_match("/[\!\#\$\%\(\)\*\+\-\.\/\:;\=\?\@\[\]\^_`\{\|\}]+|[0-9]+/", $value); var_dump(compact('value', 'result')); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 12
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/cs6hr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $value, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                           $2      <array>, ->12
          1    > > FE_FETCH_R                                                   $2, !0, ->12
    4     2    >   FRAMELESS_ICALL_2                preg_match          ~3      '%2F%5B%5C%21%5C%23%24%5C%25%5C%28%5C%29%5C%2A%5C%2B%5C-%5C.%5C%2F%5C%3A%3B%5C%3D%5C%3F%5C%40%5C%5B%5C%5D%5C%5E_%60%5C%7B%5C%7C%5C%7D%5D%2B%7C%5B0-9%5D%2B%2F', !0
          3        ASSIGN                                                       !1, ~3
    5     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'compact'
          6        SEND_VAL                                                     'value'
          7        SEND_VAL                                                     'result'
          8        DO_ICALL                                             $5      
          9        SEND_VAR                                                     $5
         10        DO_ICALL                                                     
    3    11      > JMP                                                          ->1
         12    >   FE_FREE                                                      $2
    6    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
230.16 ms | 2658 KiB | 15 Q