3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_match('/^(.+)\.(?!(php|exe))/i','test.php'); echo preg_match('/^(.+)\.(?!(php|exe))/i','test.exe'); echo preg_match('/^(.+)\.(?!(php|exe))/i','test.PHP'); echo preg_match('/^(.+)\.(?!(php|exe))/i','test.EXE'); echo preg_match('/^(.+)\.(?!(php|exe))/i','test.ok'); echo preg_match('/^(.+)\.(?!(php|exe))/i','test.gif');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RT19s
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
          2        SEND_VAL                                                 'test.php'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
          7        SEND_VAL                                                 'test.exe'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    4    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
         12        SEND_VAL                                                 'test.PHP'
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
    5    15        INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
         17        SEND_VAL                                                 'test.EXE'
         18        DO_ICALL                                         $3      
         19        ECHO                                                     $3
    6    20        INIT_FCALL                                               'preg_match'
         21        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
         22        SEND_VAL                                                 'test.ok'
         23        DO_ICALL                                         $4      
         24        ECHO                                                     $4
    7    25        INIT_FCALL                                               'preg_match'
         26        SEND_VAL                                                 '%2F%5E%28.%2B%29%5C.%28%3F%21%28php%7Cexe%29%29%2Fi'
         27        SEND_VAL                                                 'test.gif'
         28        DO_ICALL                                         $5      
         29        ECHO                                                     $5
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.68 ms | 1388 KiB | 15 Q