3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = $_POST['email']; @$tarif = $_POST['tarif']; $pattern_phone = '/\+?\d{1,3}(?:\s*\(\d+\)\s*)?(?:(?:\-\d{1,3})+\d|[\d\-]{4,}|(?:\s\d{1,3})+\d)'; if ($email && ((filter_var($email, FILTER_VALIDATE_EMAIL))||(preg_match($pattern_phone, $email)))) { if (isset($tarif) || $tarif != "") { switch ($tarif) { case 1: $name_tarif = "Базовый"; break; case 2: $name_tarif = "Плюс"; break; case 3: $name_tarif = "Премиум"; break; default: $name_tarif = "Неизвестно, необходимо связаться с клиентом для уточнения"; break; } mail("Altairk91@yandex.ru", "Новый клиент", "E-mail/Телефон клиента: ".$email."\nВыбран тариф: ".$name_tarif, 'From: noreply@realtyprofy.ru'); } else { mail("Altairk91@yandex.ru", "Новый клиент", "E-mail/Телефон клиента: ".$email, 'From: noreply@realtyprofy.ru'); } }else { header('HTTP/1.1 500 Email/Phone Error'); header('Content-Type: application/json; charset=UTF-8'); die(json_encode(array('message' => 'ERROR', 'code' => 1337))); } //support@gazsystems.com ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 60
Branch analysis from position: 22
2 jumps found. (Code = 47) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 52
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 36
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 70
Branch analysis from position: 70
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 70
Branch analysis from position: 70
Branch analysis from position: 26
Branch analysis from position: 60
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 21
filename:       /in/KX0qm
function name:  (null)
number of ops:  71
compiled vars:  !0 = $email, !1 = $tarif, !2 = $pattern_phone, !3 = $name_tarif
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_R                      global              ~4      '_POST'
          1        FETCH_DIM_R                                      ~5      ~4, 'email'
          2        ASSIGN                                                   !0, ~5
    4     3        BEGIN_SILENCE                                    ~7      
          4        FETCH_R                      global              ~8      '_POST'
          5        FETCH_DIM_R                                      ~9      ~8, 'tarif'
          6        ASSIGN                                                   !1, ~9
          7        END_SILENCE                                              ~7
    5     8        ASSIGN                                                   !2, '%2F%5C%2B%3F%5Cd%7B1%2C3%7D%28%3F%3A%5Cs%2A%5C%28%5Cd%2B%5C%29%5Cs%2A%29%3F%28%3F%3A%28%3F%3A%5C-%5Cd%7B1%2C3%7D%29%2B%5Cd%7C%5B%5Cd%5C-%5D%7B4%2C%7D%7C%28%3F%3A%5Cs%5Cd%7B1%2C3%7D%29%2B%5Cd%29'
    7     9      > JMPZ_EX                                          ~12     !0, ->21
         10    >   INIT_FCALL                                               'filter_var'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 274
         13        DO_ICALL                                         $13     
         14      > JMPNZ_EX                                         ~14     $13, ->20
         15    >   INIT_FCALL                                               'preg_match'
         16        SEND_VAR                                                 !2
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $15     
         19        BOOL                                             ~14     $15
         20    >   BOOL                                             ~12     ~14
         21    > > JMPZ                                                     ~12, ->60
    9    22    >   ISSET_ISEMPTY_CV                                 ~16     !1
         23      > JMPNZ_EX                                         ~16     ~16, ->26
         24    >   IS_NOT_EQUAL                                     ~17     !1, ''
         25        BOOL                                             ~16     ~17
         26    > > JMPZ                                                     ~16, ->52
   13    27    >   IS_EQUAL                                                 !1, 1
         28      > JMPNZ                                                    ~18, ->34
   16    29    >   IS_EQUAL                                                 !1, 2
         30      > JMPNZ                                                    ~18, ->36
   19    31    >   IS_EQUAL                                                 !1, 3
         32      > JMPNZ                                                    ~18, ->38
         33    > > JMP                                                      ->40
   14    34    >   ASSIGN                                                   !3, '%D0%91%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9'
   15    35      > JMP                                                      ->42
   17    36    >   ASSIGN                                                   !3, '%D0%9F%D0%BB%D1%8E%D1%81'
   18    37      > JMP                                                      ->42
   20    38    >   ASSIGN                                                   !3, '%D0%9F%D1%80%D0%B5%D0%BC%D0%B8%D1%83%D0%BC'
   21    39      > JMP                                                      ->42
   23    40    >   ASSIGN                                                   !3, '%D0%9D%D0%B5%D0%B8%D0%B7%D0%B2%D0%B5%D1%81%D1%82%D0%BD%D0%BE%2C+%D0%BD%D0%B5%D0%BE%D0%B1%D1%85%D0%BE%D0%B4%D0%B8%D0%BC%D0%BE+%D1%81%D0%B2%D1%8F%D0%B7%D0%B0%D1%82%D1%8C%D1%81%D1%8F+%D1%81+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82%D0%BE%D0%BC+%D0%B4%D0%BB%D1%8F+%D1%83%D1%82%D0%BE%D1%87%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F'
   24    41      > JMP                                                      ->42
   26    42    >   INIT_FCALL                                               'mail'
         43        SEND_VAL                                                 'Altairk91%40yandex.ru'
         44        SEND_VAL                                                 '%D0%9D%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82'
         45        CONCAT                                           ~23     'E-mail%2F%D0%A2%D0%B5%D0%BB%D0%B5%D1%84%D0%BE%D0%BD+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82%D0%B0%3A+', !0
         46        CONCAT                                           ~24     ~23, '%0A%D0%92%D1%8B%D0%B1%D1%80%D0%B0%D0%BD+%D1%82%D0%B0%D1%80%D0%B8%D1%84%3A+'
         47        CONCAT                                           ~25     ~24, !3
         48        SEND_VAL                                                 ~25
         49        SEND_VAL                                                 'From%3A+noreply%40realtyprofy.ru'
         50        DO_ICALL                                                 
         51      > JMP                                                      ->59
   29    52    >   INIT_FCALL                                               'mail'
         53        SEND_VAL                                                 'Altairk91%40yandex.ru'
         54        SEND_VAL                                                 '%D0%9D%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82'
         55        CONCAT                                           ~27     'E-mail%2F%D0%A2%D0%B5%D0%BB%D0%B5%D1%84%D0%BE%D0%BD+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82%D0%B0%3A+', !0
         56        SEND_VAL                                                 ~27
         57        SEND_VAL                                                 'From%3A+noreply%40realtyprofy.ru'
         58        DO_ICALL                                                 
         59    > > JMP                                                      ->70
   33    60    >   INIT_FCALL                                               'header'
         61        SEND_VAL                                                 'HTTP%2F1.1+500+Email%2FPhone+Error'
         62        DO_ICALL                                                 
   34    63        INIT_FCALL                                               'header'
         64        SEND_VAL                                                 'Content-Type%3A+application%2Fjson%3B+charset%3DUTF-8'
         65        DO_ICALL                                                 
   35    66        INIT_FCALL                                               'json_encode'
         67        SEND_VAL                                                 <array>
         68        DO_ICALL                                         $31     
         69      > EXIT                                                     $31
   38    70    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1404 KiB | 23 Q