3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'empty string "" == '; print_r(preg_match("/^([a-zA-Z0-9_\.]*\.js|defaults|\|)*/", "")); echo "\ntest.js == "; print_r(preg_match("/^([a-zA-Z0-9_\.]*\.js|defaults|\|)*/", "test.js")); echo "\n../../config/config.dat == "; print_r(preg_match("/^([a-zA-Z0-9_\.]*\.js|defaults|\|)*/", "../../config/config.dat"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZUjTj
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'empty+string+%22%22+%3D%3D+'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5E%28%5Ba-zA-Z0-9_%5C.%5D%2A%5C.js%7Cdefaults%7C%5C%7C%29%2A%2F'
          4        SEND_VAL                                                 ''
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    5     8        ECHO                                                     '%0Atest.js+%3D%3D+'
    6     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5E%28%5Ba-zA-Z0-9_%5C.%5D%2A%5C.js%7Cdefaults%7C%5C%7C%29%2A%2F'
         12        SEND_VAL                                                 'test.js'
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                                 
    7    16        ECHO                                                     '%0A..%2F..%2Fconfig%2Fconfig.dat+%3D%3D+'
    8    17        INIT_FCALL                                               'print_r'
         18        INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%2F%5E%28%5Ba-zA-Z0-9_%5C.%5D%2A%5C.js%7Cdefaults%7C%5C%7C%29%2A%2F'
         20        SEND_VAL                                                 '..%2F..%2Fconfig%2Fconfig.dat'
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.42 ms | 1395 KiB | 17 Q