3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "a".str_repeat("\xCC\x8A", 100000); var_dump( 1 === preg_match_all('/\X/u', $str), 1 === preg_match_all('/(?>\PM\pM*)/u', $str) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1i2T
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 '%CC%8A'
          2        SEND_VAL                                                 100000
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      'a', $1
          5        ASSIGN                                                   !0, ~2
    3     6        INIT_FCALL                                               'var_dump'
    4     7        INIT_FCALL                                               'preg_match_all'
          8        SEND_VAL                                                 '%2F%5CX%2Fu'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        IS_IDENTICAL                                     ~5      $4, 1
         12        SEND_VAL                                                 ~5
    5    13        INIT_FCALL                                               'preg_match_all'
         14        SEND_VAL                                                 '%2F%28%3F%3E%5CPM%5CpM%2A%29%2Fu'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        IS_IDENTICAL                                     ~7      $6, 1
         18        SEND_VAL                                                 ~7
         19        DO_ICALL                                                 
    6    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.98 ms | 1395 KiB | 19 Q