3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '(((?!a).)*)*a\\{'; $test_string = 'AAAAAAAAAAAAAA{AA'; var_dump(preg_match('/'.$regex.'/','WORKED',$test_string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ALRhY
function name:  (null)
number of ops:  13
compiled vars:  !0 = $regex, !1 = $test_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%28%28%28%3F%21a%29.%29%2A%29%2Aa%5C%7B'
    3     1        ASSIGN                                                   !1, 'AAAAAAAAAAAAAA%7BAA'
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        CONCAT                                           ~4      '%2F', !0
          5        CONCAT                                           ~5      ~4, '%2F'
          6        SEND_VAL                                                 ~5
          7        SEND_VAL                                                 'WORKED'
          8        SEND_REF                                                 !1
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.93 ms | 1394 KiB | 17 Q