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 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hI7Il
function name:  (null)
number of ops:  16
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      > JMPZ                                                     $4, ->11
    6     9    >   ASSIGN                                                   !2, 1
         10      > JMP                                                      ->12
    8    11    >   ASSIGN                                                   !2, 0
   11    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.68 ms | 1395 KiB | 17 Q