3v4l.org

run code in 300+ PHP versions simultaneously
<?php $city = 'Monterrey'; echo (preg_match('/^(Guadalajara|Monterrey|Puebla)$/i', $city) && $age >= 18);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/fBEKc
function name:  (null)
number of ops:  10
compiled vars:  !0 = $city, !1 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Monterrey'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28Guadalajara%7CMonterrey%7CPuebla%29%24%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5      > JMPZ_EX                                          ~4      $3, ->8
          6    >   IS_SMALLER_OR_EQUAL                              ~5      18, !1
          7        BOOL                                             ~4      ~5
          8    >   ECHO                                                     ~4
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.36 ms | 1394 KiB | 15 Q