3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$email = $_POST['email']; $email = 321654; @$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 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 58
Branch analysis from position: 20
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 50
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 32
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
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 24
Branch analysis from position: 58
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 19
filename:       /in/J6qd7
function name:  (null)
number of ops:  69
compiled vars:  !0 = $email, !1 = $tarif, !2 = $pattern_phone, !3 = $name_tarif
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 321654
    5     1        BEGIN_SILENCE                                    ~5      
          2        FETCH_R                      global              ~6      '_POST'
          3        FETCH_DIM_R                                      ~7      ~6, 'tarif'
          4        ASSIGN                                                   !1, ~7
          5        END_SILENCE                                              ~5
    6     6        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%2F'
    8     7      > JMPZ_EX                                          ~10     !0, ->19
          8    >   INIT_FCALL                                               'filter_var'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 274
         11        DO_ICALL                                         $11     
         12      > JMPNZ_EX                                         ~12     $11, ->18
         13    >   INIT_FCALL                                               'preg_match'
         14        SEND_VAR                                                 !2
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $13     
         17        BOOL                                             ~12     $13
         18    >   BOOL                                             ~10     ~12
         19    > > JMPZ                                                     ~10, ->58
   10    20    >   ISSET_ISEMPTY_CV                                 ~14     !1
         21      > JMPNZ_EX                                         ~14     ~14, ->24
         22    >   IS_NOT_EQUAL                                     ~15     !1, ''
         23        BOOL                                             ~14     ~15
         24    > > JMPZ                                                     ~14, ->50
   14    25    >   IS_EQUAL                                                 !1, 1
         26      > JMPNZ                                                    ~16, ->32
   17    27    >   IS_EQUAL                                                 !1, 2
         28      > JMPNZ                                                    ~16, ->34
   20    29    >   IS_EQUAL                                                 !1, 3
         30      > JMPNZ                                                    ~16, ->36
         31    > > JMP                                                      ->38
   15    32    >   ASSIGN                                                   !3, '%D0%91%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9'
   16    33      > JMP                                                      ->40
   18    34    >   ASSIGN                                                   !3, '%D0%9F%D0%BB%D1%8E%D1%81'
   19    35      > JMP                                                      ->40
   21    36    >   ASSIGN                                                   !3, '%D0%9F%D1%80%D0%B5%D0%BC%D0%B8%D1%83%D0%BC'
   22    37      > JMP                                                      ->40
   24    38    >   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'
   25    39      > JMP                                                      ->40
   27    40    >   INIT_FCALL                                               'mail'
         41        SEND_VAL                                                 'Altairk91%40yandex.ru'
         42        SEND_VAL                                                 '%D0%9D%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82'
         43        CONCAT                                           ~21     '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
         44        CONCAT                                           ~22     ~21, '%0A%D0%92%D1%8B%D0%B1%D1%80%D0%B0%D0%BD+%D1%82%D0%B0%D1%80%D0%B8%D1%84%3A+'
         45        CONCAT                                           ~23     ~22, !3
         46        SEND_VAL                                                 ~23
         47        SEND_VAL                                                 'From%3A+noreply%40realtyprofy.ru'
         48        DO_ICALL                                                 
         49      > JMP                                                      ->57
   30    50    >   INIT_FCALL                                               'mail'
         51        SEND_VAL                                                 'Altairk91%40yandex.ru'
         52        SEND_VAL                                                 '%D0%9D%D0%BE%D0%B2%D1%8B%D0%B9+%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82'
         53        CONCAT                                           ~25     '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
         54        SEND_VAL                                                 ~25
         55        SEND_VAL                                                 'From%3A+noreply%40realtyprofy.ru'
         56        DO_ICALL                                                 
         57    > > JMP                                                      ->68
   34    58    >   INIT_FCALL                                               'header'
         59        SEND_VAL                                                 'HTTP%2F1.1+500+Email%2FPhone+Error'
         60        DO_ICALL                                                 
   35    61        INIT_FCALL                                               'header'
         62        SEND_VAL                                                 'Content-Type%3A+application%2Fjson%3B+charset%3DUTF-8'
         63        DO_ICALL                                                 
   36    64        INIT_FCALL                                               'json_encode'
         65        SEND_VAL                                                 <array>
         66        DO_ICALL                                         $29     
         67      > EXIT                                                     $29
   39    68    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.61 ms | 1404 KiB | 23 Q