3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_GET['v'])) { $var=$_GET['v']; if (preg_match('/[^A-Z]/', $var)) { echo "fail"; } else { echo "success"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/LXOPI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~1      '_GET'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'v'
          2      > JMPZ                                                     ~2, ->14
    4     3    >   FETCH_R                      global              ~3      '_GET'
          4        FETCH_DIM_R                                      ~4      ~3, 'v'
          5        ASSIGN                                                   !0, ~4
    6     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5B%5EA-Z%5D%2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->13
    7    11    >   ECHO                                                     'fail'
         12      > JMP                                                      ->14
    9    13    >   ECHO                                                     'success'
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.07 ms | 1394 KiB | 15 Q