3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.69 ms | 1393 KiB | 13 Q