3v4l.org

run code in 300+ PHP versions simultaneously
<?php $city = 'Guadalajara'; $age = 20; echo ((preg_match('/^(Guadalajara|Monterrey|Puebla)$/i', $city) && $age >= 18 && $age <= 20) || (preg_match('/^(Guadalajara|Monterrey|Puebla)$/i', $city) && $age >= 46) || (!preg_match('/^(Guadalajara|Monterrey|Puebla)$/i', $city) && $age >= 21 && $age <= 45));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 22, Position 2 = 34
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 34
Branch analysis from position: 20
Branch analysis from position: 21
Branch analysis from position: 12
Branch analysis from position: 9
filename:       /in/7Uoti
function name:  (null)
number of ops:  36
compiled vars:  !0 = $city, !1 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Guadalajara'
    4     1        ASSIGN                                                   !1, 20
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%5E%28Guadalajara%7CMonterrey%7CPuebla%29%24%2Fi'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6      > JMPZ_EX                                          ~5      $4, ->9
          7    >   IS_SMALLER_OR_EQUAL                              ~6      18, !1
          8        BOOL                                             ~5      ~6
          9    > > JMPZ_EX                                          ~5      ~5, ->12
         10    >   IS_SMALLER_OR_EQUAL                              ~7      !1, 20
         11        BOOL                                             ~5      ~7
         12    > > JMPNZ_EX                                         ~5      ~5, ->21
         13    >   INIT_FCALL                                               'preg_match'
         14        SEND_VAL                                                 '%2F%5E%28Guadalajara%7CMonterrey%7CPuebla%29%24%2Fi'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17      > JMPZ_EX                                          ~9      $8, ->20
         18    >   IS_SMALLER_OR_EQUAL                              ~10     46, !1
         19        BOOL                                             ~9      ~10
         20    >   BOOL                                             ~5      ~9
         21    > > JMPNZ_EX                                         ~5      ~5, ->34
         22    >   INIT_FCALL                                               'preg_match'
         23        SEND_VAL                                                 '%2F%5E%28Guadalajara%7CMonterrey%7CPuebla%29%24%2Fi'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $11     
         26        BOOL_NOT                                         ~12     $11
         27      > JMPZ_EX                                          ~12     ~12, ->30
         28    >   IS_SMALLER_OR_EQUAL                              ~13     21, !1
         29        BOOL                                             ~12     ~13
         30    > > JMPZ_EX                                          ~12     ~12, ->33
         31    >   IS_SMALLER_OR_EQUAL                              ~14     !1, 45
         32        BOOL                                             ~12     ~14
         33    >   BOOL                                             ~5      ~12
         34    >   ECHO                                                     ~5
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1392 KiB | 15 Q