3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "sqrtpdrt"; // matched $string2 = "qwntfschrprtkjs"; // not matched (contains chr group) $regex = '/^(?= .*[bcdfghjklmnpqrstvwxz]{4} )(?!.*chr)/ix'; var_dump(preg_match($regex, $string1)); var_dump(preg_match($regex, $string2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tOQWR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string1, !1 = $string2, !2 = $regex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sqrtpdrt'
    3     1        ASSIGN                                                   !1, 'qwntfschrprtkjs'
    5     2        ASSIGN                                                   !2, '%2F%5E%28%3F%3D+++.%2A%5Bbcdfghjklmnpqrstvwxz%5D%7B4%7D+++%29%28%3F%21.%2Achr%29%2Fix'
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_match'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.93 ms | 1394 KiB | 17 Q