3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "some_text_v1_I1_some_mote__text"; $b = 2; $c = $b - 1; $d = $b + 1; $c = "/(i(ssue)?(" . $b . "\d)|(\d" . $b . "))|(i(ssue)?[0-" . ($b - 1) . ($b + 1) . "-9])|(faculty)|(Internal)|(Final)/i"; if (!preg_match($c, $a)) { echo 1; } else { echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9itZK
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'some_text_v1_I1_some_mote__text'
    4     1        ASSIGN                                                   !1, 2
    5     2        SUB                                              ~6      !1, 1
          3        ASSIGN                                                   !2, ~6
    6     4        ADD                                              ~8      !1, 1
          5        ASSIGN                                                   !3, ~8
    8     6        CONCAT                                           ~10     '%2F%28i%28ssue%29%3F%28', !1
          7        CONCAT                                           ~11     ~10, '%5Cd%29%7C%28%5Cd'
          8        CONCAT                                           ~12     ~11, !1
          9        CONCAT                                           ~13     ~12, '%29%29%7C%28i%28ssue%29%3F%5B0-'
         10        SUB                                              ~14     !1, 1
         11        CONCAT                                           ~15     ~13, ~14
         12        ADD                                              ~16     !1, 1
         13        CONCAT                                           ~17     ~15, ~16
         14        CONCAT                                           ~18     ~17, '-9%5D%29%7C%28faculty%29%7C%28Internal%29%7C%28Final%29%2Fi'
         15        ASSIGN                                                   !2, ~18
   10    16        INIT_FCALL                                               'preg_match'
         17        SEND_VAR                                                 !2
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $20     
         20        BOOL_NOT                                         ~21     $20
         21      > JMPZ                                                     ~21, ->24
   11    22    >   ECHO                                                     1
         23      > JMP                                                      ->25
   13    24    >   ECHO                                                     2
   14    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.36 ms | 1395 KiB | 15 Q