3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gorod = "Москва"; if( !preg_match('/[Мм][Оо][Сс][Кк][Вв][Аа]/', $gorod, $matches, PREG_OFFSET_CAPTURE, 0) ) { $dostavka = 1; } else { $dostavka = 0; } var_dump($dostavka);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MoKAp
function name:  (null)
number of ops:  17
compiled vars:  !0 = $gorod, !1 = $matches, !2 = $dostavka
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5B%D0%9C%D0%BC%5D%5B%D0%9E%D0%BE%5D%5B%D0%A1%D1%81%5D%5B%D0%9A%D0%BA%5D%5B%D0%92%D0%B2%5D%5B%D0%90%D0%B0%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 256
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $4      
          8        BOOL_NOT                                         ~5      $4
          9      > JMPZ                                                     ~5, ->12
    6    10    >   ASSIGN                                                   !2, 1
         11      > JMP                                                      ->13
    8    12    >   ASSIGN                                                   !2, 0
   11    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.02 ms | 1395 KiB | 17 Q