3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attempts = [ '/admin/scripts/vuln.php', '/admin/scripts/unsafe.php', '/admin/lib/blocked.php', '/admin/hello.php', '/admin/lib/hello.php', '/admin/scripts/vulner.php', 'admin/' ]; foreach($attempts as $attempt) { $success = preg_match('/(\/admin\/(scripts|lib)\/(vuln|unsafe|blocked)\.php)/', $attempt, $matches); var_dump($success); var_dump($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/r94o7
function name:  (null)
number of ops:  18
compiled vars:  !0 = $attempts, !1 = $attempt, !2 = $success, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1      > FE_RESET_R                                       $5      !0, ->16
          2    > > FE_FETCH_R                                               $5, !1, ->16
   14     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%28%5C%2Fadmin%5C%2F%28scripts%7Clib%29%5C%2F%28vuln%7Cunsafe%7Cblocked%29%5C.php%29%2F'
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !3
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   15     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   16    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
   13    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $5
   17    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.4 ms | 1395 KiB | 17 Q