3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "sqrtpdrt"; // matched $string2 = "qwntfschrprtkjs"; // not matched (contains chr group) var_dump(preg_match('/[bcdfghjklmnpqrstvwxz]{4}/i', $string1 ) && !strstr($string1, "chr")); var_dump(preg_match('/[bcdfghjklmnpqrstvwxz]{4}/i', $string2 ) && !strstr($string1, "chr"));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 14
filename:       /in/6ZTpI
function name:  (null)
number of ops:  31
compiled vars:  !0 = $string1, !1 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sqrtpdrt'
    3     1        ASSIGN                                                   !1, 'qwntfschrprtkjs'
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5Bbcdfghjklmnpqrstvwxz%5D%7B4%7D%2Fi'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7      > JMPZ_EX                                          ~5      $4, ->14
          8    >   INIT_FCALL                                               'strstr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'chr'
         11        DO_ICALL                                         $6      
         12        BOOL_NOT                                         ~7      $6
         13        BOOL                                             ~5      ~7
         14    >   SEND_VAL                                                 ~5
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%2F%5Bbcdfghjklmnpqrstvwxz%5D%7B4%7D%2Fi'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $9      
         21      > JMPZ_EX                                          ~10     $9, ->28
         22    >   INIT_FCALL                                               'strstr'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 'chr'
         25        DO_ICALL                                         $11     
         26        BOOL_NOT                                         ~12     $11
         27        BOOL                                             ~10     ~12
         28    >   SEND_VAL                                                 ~10
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.26 ms | 1396 KiB | 19 Q