3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('~(?>[\pZ\pC]+)$~u', '', str_repeat(json_decode('"\u2029"'), 20000) . 'x');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Wfc5
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%7E%28%3F%3E%5B%5CpZ%5CpC%5D%2B%29%24%7Eu'
          2        SEND_VAL                                                 ''
          3        INIT_FCALL                                               'str_repeat'
          4        INIT_FCALL                                               'json_decode'
          5        SEND_VAL                                                 '%22%5Cu2029%22'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        SEND_VAL                                                 20000
          9        DO_ICALL                                         $1      
         10        CONCAT                                           ~2      $1, 'x'
         11        SEND_VAL                                                 ~2
         12        DO_ICALL                                         $3      
         13        ECHO                                                     $3
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.34 ms | 1398 KiB | 19 Q